Skip to content

How to get my bot to announce when I make a social media post? #6843

Closed Answered by almostSouji
camistired asked this question in Q&A

You must be logged in to vote

You would need to check out the API for the respective social media platform. Some allow programmatically querying recent posts (in a polling approach), others let you subscribe to a websocket, and some don't offer any API to provide this feature.

In the latter case you may want to consider scraping the website content itself with tools like cheerio.

If you need to interact with the website to reach the content in question you may find puppeteer or similar tools useful. If you resort to this, however, I'd suggest reading the terms of service of the service you are interacting with in depth, since programmatical interactions are often times not allowed.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by Jiralite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants