Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonlindgren/2wttr
Get tweets from the v2 Twitter API, using Academic access.
https://github.com/simonlindgren/2wttr
Last synced: 3 months ago
JSON representation
Get tweets from the v2 Twitter API, using Academic access.
- Host: GitHub
- URL: https://github.com/simonlindgren/2wttr
- Owner: simonlindgren
- Created: 2021-02-08T13:31:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-14T13:19:40.000Z (over 3 years ago)
- Last Synced: 2024-05-12T06:34:41.775Z (6 months ago)
- Language: Python
- Size: 24.4 KB
- Stars: 18
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 2wttr
Get tweets from the v2 Twitter API, using [Academic access](https://developer.twitter.com/en/solutions/academic-research).Current functionality:
- Collect tweets from the **full archive search** endpoint.
## 2wttr_fas.py
Full archive search. Academic access allows for 10M tweets to be collected per month. Keep track on the [developer portal](https://developer.twitter.com/en/portal/dashboard).
1. Provide your bearer token and parameters in `config_fas.py`.
2. `$ python3 2wttr_fas.py`.Requests will be done in batches of 100 tweets per page, and paginate until no more tweets are returned. Results will be saved as `dataset.jsonl`.
## Format data
Run `$ python3 parse.py` to convert `dataset.jsonl` to a tidier version.