/Twitter-Bot

A bot that extracts Email address, Twitter profile name and number of followers from people's Twitter bio (on public/open accounts), into a Google spreadsheet based on a certain hashtag.

Primary LanguageJavaScript

#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

Getting Started

  1. You need to have Node.js installed. You can download and install Node.js here

  2. 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>
  1. Install the dependencies your application needs:
npm install
  1. Start the application locally:
npm start
  1. Point your browser to http://localhost:3000.

screen shot