Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskian/get-tweets
Scrape tweets from the user Timeline
https://github.com/mskian/get-tweets
node nodejs scraper tweets twitter twitter-api
Last synced: about 1 month ago
JSON representation
Scrape tweets from the user Timeline
- Host: GitHub
- URL: https://github.com/mskian/get-tweets
- Owner: mskian
- License: mit
- Created: 2018-08-27T06:15:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:28:42.000Z (about 2 years ago)
- Last Synced: 2024-11-07T22:48:46.802Z (3 months ago)
- Topics: node, nodejs, scraper, tweets, twitter, twitter-api
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Get Tweets
Scrape tweets from the user Timeline
## Requirements
- Node.JS 6 or 8x
- GIT to clone this Respo
- Twitter Developer Account to Create a Keys and Tokens## Get CONSUMER KEY & ACCESS ID
- Apply for Twitter developer Account - https://developer.twitter.com/
- After Getting Approval Create an APP and Generate your Tokens and Keys - https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens.html## Installation
- Install via GIT
```
git clone https://github.com/mskian/get-tweets.git
cd get-tweets
npm install
rename .env.example to .env
```- Add your Twitter APP's Tokens and Keys in .env File
```
CONSUMERKEY =
CONSUMERSECRET =
TOKEN =
TOKENSECRET =
```- Execute the Script with Arguments
```
node app.js --username twitter_username
```Defaults to twitter username `inspire_us` if no arguments are supplied.
## Customization
File `app.js`
```javascript
var statuses = 'https://api.twitter.com/1.1/statuses/user_timeline.json?count=10'; // count - list the no of tweets you want to Display
```## License
MIT