Skip to main content

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

Project details


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)

Uploaded Source

Built Distribution

smat-0.2.0-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page