A-Lohse / academic_tweet

API wrapper for academic track Twitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

academic_tweet

API wrapper for academic track Twitter

The package contains a wrapper for the new v2 twitter API, developed especially for use with academic track acces to the API.

The package functions in threee eaasy steps:

    • Create a tweeter object with your' twitter API bearer token
    • Set the parameters of you query by setting the .params of the object
    • Make the appropriate call to the API using the .twitter_search() method, with the correct call = specified

See the test notebook for an example of the use case

Implemented calls:

The call names are consistently named after the the name of the api endpoint in the v2 api, though they are sometimes odd.

search:

user_tweets:

user_mentions:

user_id:

user_name:

following:

followers:

To see what paramters you want to set see: https://developer.twitter.com/en/docs/twitter-api/early-access

The package is deceloped by August Lohse, for my work as a Ph.D student at SODAS at UCPH. It is freely availbe for use for everyone, just give credit where it is due.

About

API wrapper for academic track Twitter

License:MIT License


Languages

Language:Jupyter Notebook 96.3%Language:Python 3.7%