SMAT
A Python API wrapper for the Social Media Analysis Toolkit
Installation:
- Clone this repo with
git clone https://github.com/nwithan8/SMAT-API.git
or install from PyPi with pip install smat
- Import into your project with
from smat import API
Usage:
This library currently supports the three main methods of SMAT's API:
-
get_content
: Get a list of posts from a specific outlet
-
get_activity
: Aggregate based on a particular field on a specific outlet
-
get_time_series
: Get a time series for a specific outlet
-
term
is a required parameter for each field.
-
site
is a required parameter for each field. You can use the predefined enums in smat.Site
or provide your own string.
- NOTE: IF you provide an invalid site, you will receive an empty JSON body back from the API.
-
All other parameters are optional or have preset defaults.
Docs coming soon. PRs welcome.