![]() Check out the API reference() for more details. There are a lot more things you can do with the API. Les Bots de modrations sur Discord 1 Mee6 Modration de serveur Discord 2 ProBot Modration Discord 3 Dyno Bot de modration, anti-spam, rles 4. We take the id_str of the original tweet and filter duplicates using the onlyUnique function If tweet text starts with "RT then it is a retweeted tweet, with a different id_str than the original.To a novice Twitter user, it looks like your bot has retweeted the same stuff two or more times. When we call the statuses/retweet/:id API endpoint, it retweets all of them. The search API finds both the original tweet and the retweeted ones. If you retweet someone's tweet, it has a different id_str. This will let our bot avoid duplicate retweets. ![]() The utility function onlyUnique can be written outside the retweet function as well. config ' ) const twit = require ( ' twit ' ) const T = new twit ( config ) function retweet ( searchText ) // Get only unique entries tweetIDList = tweetIDList. Make sure you have Node.js and npm installed on your PC.įor Ubuntu, install using the following commandsĬonst config = require ( '. ⚠️ Warning (Don't reveal the API keys in any case). Click on your apps details and navigate to Keys and tokens Once your twitter developer account access has been approved. Read the full article on How to apply for a twitter developer Account Make sure you have read the Developer Agreement and Policy, Automation rules and The Twitter Rules thoroughly before applying.įailing to meet these conditions will cause your application to be rejected Mention the purpose of your application.Go to and click on 'Apply for a Developer account'. ![]() This is the most important and perhaps the most difficult step according to me. Step 1: Apply for Twitter Developer Account This article is about how I created The Data Science Bot using Node.js. A bot can be used to enhance your business, assist customers through automated replies, automate retweets for specific terms, and a lot more. ![]() Making a twitter bot is one of the many use cases of using the Twitter API.
0 Comments
Leave a Reply. |