A Twitter Academic API Client
Project description
twacapic
Twitter Academic API Client
In development. Expect breaking changes and destructive bugs when updating to the latest version.
Latest working version: 0.1.4.3
Installation
Install via pip:
pip install twacapic
Usage
To collect the latest 100 tweets of a list of users run:
twacapic USER_GROUP_NAME PATH_TO_USER_CSV
USER_GROUP_NAME
should be the name of the results folder that is meant to be created and will contain raw json responses from Twitter.
PATH_TO_USER_CSV
should be a path to a list of Twitter user IDs, without header, one line per user ID.
Afterwards you can poll for new tweets of a user group by running simply:
twacapic USER_GROUP_NAME
Enjoy!
Dev Install
- Install poetry
- Clone repository
- In the directory run
poetry install
- Run
poetry shell
to start development virtualenv - Run
twacapic
to enter API keys. Ignore the IndexError. - Run
pytest
to run all tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for twacapic-0.1.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65aff37bbbeda860e002299f87d0909a790d934051000cd3c5381fde6bc536b |
|
MD5 | 013012a5ec14751eda514ae76acba0bc |
|
BLAKE2b-256 | e01a7f6af0075079bdfc0024b1e7e36814f04214195c3fe444b8916d4e960541 |