-
Notifications
You must be signed in to change notification settings - Fork 3
Home
The OSoMeTweet project intends to provide a set of tools to help researchers work with Twitter's V2 API. The Wiki provides detailed instructions about the tools and will also work as an unofficial archive of knowledge gathered by people throughout the process.
For instructions like how to install the package, see the README.md.
Functional scripts which use the osometweet
package can be downloaded from the examples/
folder.
Before you can gather any data from Twitter, you must create an authentication object.
See page Authentication for instructions on how to create an authentication object and use it to initialize the OsomeTweet
class.
- Method: Search Endpoints - Access the recent search endpoint or the full archive search endpoint
Tweet endpoints allow you to download tweets using the API.
Here are the endpoints currently supported by osometweet
:
- Method: Tweet lookup - Gather data on specific tweets.
- Method: Timelines - Gather tweets sent by a specific user or mentioning a specific user.
User endpoints allow you to download user information using the API.
Here are the endpoints currently supported by osometweet
:
-
Method: User lookup - Gather account data about specific users (using their
user_id
orusername
). - Method: Follows lookup - Download all users that a specific user follows (following), or is followed by (followers).
V2 API, by default, only returns limited information.
To fetch more, you will need to specify the fields
and expansions
parameters in the requests.
OSoMeTweet
contains several classes to handle them.
See Specifying fields and expansions for examples of how to work with them.
osometweet
offers some utility functions to make your life easier, see Utility functions for details.
-
Twitter API v2 Sample Code - This is code written by some Twitter folks and does not use
osometweet
. - HTTP Status Codes and Errors
-
Twitter API V2 Endpoints - A list of Twitter's available endpoints, noting which are currently supported by
osometweet
. - Available Fields and Expansions
- Academic Track Details