Skip to main content

A Twitter Academic API Client

Project description

twacapic

Twitter Academic API Client

In development. Expect breaking changes and destructive bugs when updating to the latest version.

Latest working version: 0.1.4.3

Installation

Install via pip:

pip install twacapic

Usage

To collect the latest 100 tweets of a list of users run:

twacapic USER_GROUP_NAME PATH_TO_USER_CSV

USER_GROUP_NAME should be the name of the results folder that is meant to be created and will contain raw json responses from Twitter.

PATH_TO_USER_CSV should be a path to a list of Twitter user IDs, without header, one line per user ID.

Afterwards you can poll for new tweets of a user group by running simply:

twacapic USER_GROUP_NAME

Enjoy!

Dev Install

  1. Install poetry
  2. Clone repository
  3. In the directory run poetry install
  4. Run poetry shell to start development virtualenv
  5. Run twacapic to enter API keys. Ignore the IndexError.
  6. Run pytest to run all tests

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

twacapic-0.1.4.4.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

twacapic-0.1.4.4-py3-none-any.whl (5.3 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