Socket
Book a DemoInstallSign in
Socket

smat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smat

A Python client for SMAT's API

pipPyPI
Version
0.2.0
Maintainers
1

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.

Keywords

SMAT

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts