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.2
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.
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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c0ef11ddf71abff1dcad8c8d51f36d18d811b32b09e0379d7cb4fbf385bc75 |
|
MD5 | 130e7c90e3c692205b8c11b24cecc657 |
|
BLAKE2b-256 | 2b2b806807e6577c3d078331aa315c498d7d1db81d00042ded11aede0189f1d1 |