A Twitter Academic API Client
Project description
twacapic
Twitter Academic API Client
In development. Expect breaking changes and destructive bugs before updating to the latest version.
Latest presumably 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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1920abb8476d22bd281456268dc2094952ffe5023e80a0bb2fb75eb0f7c20160 |
|
MD5 | 577414104773ec9254d193d1188a6d91 |
|
BLAKE2b-256 | 4bf678f92a51d3bb50d081c9e4096b44f36e5758f0197e659563ddfbb179364f |