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.
- Twitter API Key & Secret Key (obtainable with free Twitter Developer account)
- Twitter Access Token & Secret (obtainable with free Twitter Developer account)
- Fork and/or clone this repository.
- Create a file called
.env
in your project's root directory (ietouch .env
). - 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 }
- Ensure you are in your project's root directory.
- In your terminal, type:
node index.js
.