#Twitter Bot
A bot that extracts the following from people’s Twitter bio (on public/open accounts), into a Google spreadsheet:
Twitter profile name Number of followers
Target accounts based on hashtags used. The bot maintains a session and continously listens to the predefined hashtag
-
You need to have Node.js installed. You can download and install Node.js here
-
Create a
.env
file in the root directory. The.env
file will look something like the following:
TWITTER_CONSUMER_KEY = <Twitter Consumer Key>
TWITTER_CONSUMER_SECRET = <Twitter Consumer Secret>
TWITTER_ACCESS_TOKEN = <Twitter Access Token>
TWITTER_ACCESS_TOKEN_SECRET = <Twitter Access Token Secret>
GOOGLE_CLIENT_ID = <Google Client Id>
GOOGLE_CLIENT_SECRET = <Google Client Secret>
GOOGLE_REDIRECT_URL = <Google Redirect Url>
GOOGLE_SPREADSHEET_ID = <Google Spreadsheet Id>
MAX_COUNT = <Maximum number of tweets to fetch>
- Install the dependencies your application needs:
npm install
- Start the application locally:
npm start
- Point your browser to http://localhost:3000.