https://github.com/abdullah2993/twitter-tools
Small utilities for twitter
https://github.com/abdullah2993/twitter-tools
twitter twitter-api twitter-sentiment-analysis twitter-streaming-api
Last synced: 3 months ago
JSON representation
Small utilities for twitter
- Host: GitHub
- URL: https://github.com/abdullah2993/twitter-tools
- Owner: abdullah2993
- License: mit
- Created: 2023-02-18T17:06:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T23:20:13.000Z (over 2 years ago)
- Last Synced: 2024-12-31T22:26:01.371Z (over 1 year ago)
- Topics: twitter, twitter-api, twitter-sentiment-analysis, twitter-streaming-api
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitter-tools
Small utilities for twitter
### search
Search for tweets with the given keyword/hashtag use to get all data related to a keyword/hashtag
```
USAGE: search
Flags:
-pretty
Format JSON (default true)
```
will create a new output file if it doesn't exist otherwise will append
### track
Track tweets with the given keyword/hashtag in realtime usually used with search so you don't miss new tweets while the search is getting older tweets
```
USAGE: track
Flags:
-pretty
Format JSON (default true)
```
will create a new output file if it doesn't exist otherwise will append
### merge
Deduplicate and merge multiple tweet files into one file, used to merge output of search and track utilities for analysis.
```
USAGE: analyze
Flags:
-fail
Fail on error (default true)
-pretty
Format JSON (default true)
```
will create a new output file if it doesn't exist otherwise will append
### analyze
Do some preliminary analysis on a given tweets file
```
USAGE: analyze
Flags:
-top int
Number of results to print(less than 1 to print all) (default 30)
```
will create a new report file if it doesn't exist otherwise it will override any existing file
### Usage
To analyze a given hashtag run `search` for the hashtag to get all the older tweets, in parallel run `track` to get the new tweets once done, merge the output files using `merge` and run `analyze` on the output file
search and track use twitter api keys so make sure to [set the environment variables](./.env.sample) or provide a `.env` in the same folder as the executable