Twitcatting for Python Python 3.7 - 3.9 are supported.
The easiest way to install the latest version from PyPI is by using pip:
pip install twitcaspy
You can also use Git to clone the repository from GitHub to install the latest development version:
git clone https://github.com/Alma-field/twitcaspy.git
cd twitcaspy
pip install .
Alternatively, install directly from the GitHub repository:
pip install git+https://github.com/Alma-field/twitcaspy.git
This is an execution example in the application scope.
Get the account name of @twitcasting_jp.
from twitcaspy import API, AppAuthHandler
auth = AppAuthHandler(client_id, client_secret)
api = API(auth)
print(api.get_user_info(id='twitcasting_jp').user.name)
# > ツイキャス公式
See in examples for other examples and the entire code.
This library is based on:
- tweepy/tweepy - Twitter for Python!
- tamago324/PyTwitcasting - PyTwitcasting is a library for API v2 (β) of Twitcasting.