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.
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
twacapic-0.1.4.5.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for twacapic-0.1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79256a4c59da160578e591c8791712d3c45aa4ca20789a515617f215fdfb5c4c |
|
MD5 | cf530a4a229f31e2c28e946af22f34a5 |
|
BLAKE2b-256 | 77f0852ef395d813495d0b509a51581d3cb574deac417c64cfdde299faccb15e |