š Excited to Share My Latest Work!
Iām thrilled to give an update on a new tool Iāve been building, which automates cross-posting across Medium, LinkedIn, and DEV.to. This has been a fantastic learning journey, and although thereās still more to fine-tune, itās already operational! š
š ļø Technologies Used:
Backend: Node.js, Express
APIs:LinkedIn API, Medium API, DEV.to API, RSS Parser
Libraries: RSS-Parser, Axios
š Project Overview:
The goal of this project is to streamline the content sharing process across multiple platforms, allowing me to post once and have the content automatically shared on LinkedIn, Medium, and DEV.to. This system converts HTML content to markdown, extracts images, and ensures the correct formatting across all platforms.
šļø Key Features:
Automated Cross-Posting: Posts made on Medium automatically get shared on LinkedIn and DEV.to (and viceĀ versa).HTML to Markdown Conversion: Ensures the content is formatted correctly for each platform, including image extraction.Integration with APIs: Secure authentication using access tokens for LinkedIn, Medium, andĀ DEV.to.š” Challenges & Solutions:
Challenge 1: Working with multiple APIs and managing authentication tokens.
Solution: I separated the API interactions into different files and used environment variables to handle access tokens securely.
Challenge 2: Creating a Privacy Policy to comply with LinkedInās API requirements and obtain an access token.
Solution: I had to research and write a comprehensive privacy policy, outlining how data would be used, to meet LinkedInās developer guidelines.
Challenge 3: Converting HTML content to Markdown for posting on DEV.to and Medium.
Solution: I researched and used HTML-to-Markdown conversion libraries, and learned how to write regex for contentĀ parsing.
Challenge 4: Extracting images from HTML and embedding them correctly in the markdown.
Solution: I created a function that parses the HTML, finds image tags, and converts them into markdown-compatible imageĀ links.
š What IĀ Learned:
Sharpen ability to integrate and work with multiple APIs efficiently.The importance of organizing code by separating concerns (e.g., API handling, token management).How to convert HTML to markdown and deal with content formatting across platforms.Improved my regex skills, which helped with parsing HTMLĀ content.š Reflection
The earlier you organize your project structure the easier it is to continue working on it when you have to stop for aĀ while.
There is a heck of a lot to learn in the tech field and I humbly welcomeĀ it.
š Check Out the repo: https://github.com/Jesse-Chong/Cross-post-server
Thank you for reading! Iād love to hear your thoughts.
APIs #Automation #WebDevelopment #NodeJS #CrossPosting #Regex #Markdown #ContentCreation #FullStackDevelopment #SoftwareEngineering #ProjectManagement
Originally published at Medium
Top comments (0)