pytweetql is a simple Python package designed for developers who work with the Twitter GraphQL API
Currently it is built to parse tweet, user, and list GET responses from the Twitter GraphQL API. The function to call is based on the GraphQL endpoint. So for the UserTweets endpoint, you would import the parsing
module and use the parse_user_tweets()
function.
How it Works
from pytweetql import parsing
response = {'data': {.....}}
tweets = parsing.parse_user_tweets(response=response)
print(tweets.tweets)
users = parsing.parse_users_by_screen_name(response=response)
print(users.users)
lists = parsing.parse_create_list(response=response)
print(lists.lists)