https://github.com/sambhav2612/my-twitter-bot
NodeJS Twitter Bot
https://github.com/sambhav2612/my-twitter-bot
Last synced: 2 months ago
JSON representation
NodeJS Twitter Bot
- Host: GitHub
- URL: https://github.com/sambhav2612/my-twitter-bot
- Owner: sambhav2612
- License: mit
- Created: 2017-10-08T04:42:54.000Z (over 7 years ago)
- Default Branch: patch-1
- Last Pushed: 2017-10-26T13:01:55.000Z (over 7 years ago)
- Last Synced: 2025-01-22T01:36:28.922Z (4 months ago)
- Language: JavaScript
- Size: 2.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### [NodeJS-Twitter Bot](https://github.com/sambhav2612/my-twitter-bot)
[](https://www.codacy.com/app/sambhavjain2612/my-twitter-bot?utm_source=github.com&utm_medium=referral&utm_content=sambhav2612/my-twitter-bot&utm_campaign=badger)
[](https://codeclimate.com/github/sambhav2612/my-twitter-bot/maintainability)
[](https://bettercodehub.com/)#### current version {0.5.5}
I had a fantasy to create something that automates some tasks for me or for anyone. Last week, I've reading some article on [Medium](https://medium.com) about startups. In the suggested section, there was a article with title *["Build a Twitter Bot using NodeJS with 38 Lines of Code"](https://codeburst.io/build-a-simple-twitter-bot-with-node-js-in-just-38-lines-of-code-ed92db9eb078)*. I went in, thinking it'd be pretty hard to create something like a bot. But, it was easier to design a simple bot than to *write an algortihm to sort n-elements in O(n) time*.
The concept behind the bot is pretty relative:
1. You need to have a query (set of keyword/s) you need to search the tweets according to.
2. You need to have access to the Twitter API.
3. You must be lazy.
**So, how did I accomplish this?**
I had to sign up for a new account on Twiiter. Then, I went on [Twitter Apps](https://apps.twitter.com) and created a new app. Now, here's the important part: When you create an app on Twiiter they give your app unique IDs to differentiate from other apps running on Twitter. You may have to click Generate Access Token to create your access token.- Consumer Key
- Consumer Secret
- Access Token Key
- Access Token Secret