Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbeley/export-all-tweets
Export the maximum of tweets allowed by the Twitter API for one or several twitter users.
https://github.com/dbeley/export-all-tweets
Last synced: 7 days ago
JSON representation
Export the maximum of tweets allowed by the Twitter API for one or several twitter users.
- Host: GitHub
- URL: https://github.com/dbeley/export-all-tweets
- Owner: dbeley
- License: mit
- Created: 2019-08-21T13:27:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:36:08.000Z (about 2 years ago)
- Last Synced: 2024-11-11T21:04:51.072Z (2 months ago)
- Topics: twitter
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# export-all-tweets
The scripts need a valid config file with your twitter API keys (get them at developer.twitter.com.) in a config.ini file (see config_sample.ini for an example).
- export_all_tweets.py : Exports all tweets from one or several users in xlsx format.
## Requirements
- pandas
- tweepy
- openpyxl## Installation of the virtualenv with pipenv (recommended)
```
pipenv install
```You can then launch any script with
```
pipenv run python export_all_tweets.py -h
```## Usage
```
python export_all_tweets.py -h
``````
usage: export_all_tweets.py [-h] [--debug] [-u USER] [-r]Export all tweets for one or several twitter accounts.
optional arguments:
-h, --help show this help message and exit
--debug Display debugging information.
-u USER, --user USER Username (separated by comma).
-r, --export_retweets
Export retweets (default = False).
```