A Python client for SMAT's API
Project description
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 withpip 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 insmat.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smat-0.2.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
smat-0.2.0-py3-none-any.whl
(16.6 kB
view hashes)