/jobscanwizard

CLI for easy implementation of Shajia Abidi's Tweet Scraper

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Twitter Scraping Wizard

CLI for easy implementation of Shajia Abidi's Tweet Scraper. Shajia has excellent documentation on the original application and integration of Twilio. This first implementation does not include the Twilio functionality, though this is currently expected to be implemented in future iterations.

Dependencies

Other Prerequisites

Setup & Configuration

  1. Fork and/or clone this repository.
  2. Create a file called .env in your project's root directory (ie touch .env).
  3. Add the following code block:
export API_KEY=yourAPIKey
export API_SECRET_KEY=YourAPISecretKey
export ACCESS_TOKEN=yourAccessToken
export ACCESS_TOKEN_SECRET=yourAccessTokenSecret

...making sure to replace all the placeholders with your information.
4. Install dependencies (ie npm install twit objects-to-csv dotenv).
5. Edit index.js line 17 where q is your search string and count is the number of tweets to return.

  • { q: 'looking for frontend', count: 1 } might be edited to { q: 'looking for Scrum Master', count: 23 }

Usage

  1. Ensure you are in your project's root directory.
  2. In your terminal, type: node index.js.