Skip to content

This is a twitter bot built over NodeJS. You can post, retweet the tweets. Get the list of recent tweets from your home and user timeline & many more to come.

Notifications You must be signed in to change notification settings

st2654/TwitterBotNodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

#Twitter-Bot in NodeJs This is twitter NodeJS client to

  • Post a tweet
  • Retweet a tweet
  • Favorite a tweet
  • Fetch recent tweets on home timeline or user timeline

To use this code first install 'twitter' an npm package

npm install twitter

After this you need to create an app in twitter, to create an app click on http://apps.twitter.com You need to add App Name, description, website and check the agreement box, click to create app. Now click on Keys & Token tab and scroll down and click on request token. Get Consumer Key, Consumer Secret key, Access Token and Access Secret Key.

You need this 4 keys to run this program. Fill it in this values

#Usage :

var client = new Twitter({
consumer_key : '',
consumer_secret : '',
access_token_key : '',
access_token_secret : ''
});

Post A Tweet

node twitter_post_status.js -post type_your_post_here 

Fetch recent tweets

node twitter_recent_tweets.js 

About

This is a twitter bot built over NodeJS. You can post, retweet the tweets. Get the list of recent tweets from your home and user timeline & many more to come.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published