Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/KevCui/getTweets

:bird: Fetch tweets from a specific user without account login
https://github.com/KevCui/getTweets

bash bash-script tweets tweets-scraper twitter

Last synced: about 2 months ago
JSON representation

:bird: Fetch tweets from a specific user without account login

Awesome Lists containing this project

README

        

getTweets.sh
============

getTweets.sh is a quick and simple Bash script, for fetching tweets from a specific user. This script uses twitter guest token, so there is absolute no need to either register official twitter API access or to login twitter account. The output is a json file for the further analysis. Yep, quick & simple.

## Dependency

- [jq](https://stedolan.github.io/jq/)

## How to use

```
Usage:
./getTweets.sh -u [-m ] [-d]

Options:
-u Mandatory, set twitter handle
-d Optional, direct output without saving to json file
-m Optional, max tweets number to download
-h | --help Display this help message
```

### Example

- Fetch tweets from `kevcui`:

```
~$ ./getTweets.sh -u kevcui
```

All downloaded tweets will be stored in a json file, format like: `_.json`