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
Built Distribution
File details
Details for the file smat-0.2.0.tar.gz
.
File metadata
- Download URL: smat-0.2.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d4e5eb88f717769e8e978f870890154ae2d2c20e38a8d85df94d95282c0787a |
|
MD5 | c6faacf8403b9bfeb4c32ee056458201 |
|
BLAKE2b-256 | 31e5adfac079944609ab151aa469febc08523b9e6c16749c370124ae8ea8fa5f |
File details
Details for the file smat-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: smat-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a02ac122f836c14d2da726ea4242f07c1c1bd42ed3e0fdeb25de422e26fc400f |
|
MD5 | d6735d2879590e9859c476cdf17ca661 |
|
BLAKE2b-256 | 8c8913b8a755b77b3de57400b48fb24dc1c6deb0982fec46b33d36ea5df0e035 |