Skip to main content

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.

  • siteis 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.

Metadata

Release files for smat 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smat 0.2.0
File Size Uploaded
smat-0.2.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smat 0.2.0
File Interpreter ABI Platform
smat-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / smat-0.2.0.tar.gz

Download URL smat-0.2.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4e5eb88f717769e8e978f870890154ae2d2c20e38a8d85df94d95282c0787a
BLAKE2b-256 checksum
How to use checksums
31e5adfac079944609ab151aa469febc08523b9e6c16749c370124ae8ea8fa5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / smat-0.2.0-py3-none-any.whl

Download URL smat-0.2.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a02ac122f836c14d2da726ea4242f07c1c1bd42ed3e0fdeb25de422e26fc400f
BLAKE2b-256 checksum
How to use checksums
8c8913b8a755b77b3de57400b48fb24dc1c6deb0982fec46b33d36ea5df0e035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page