Skip to main content

Ping/Knock a list of tweets to enquire their status (deleted/available/...) #twockknock

Project description

twock

Ping/knock a list of tweets and return reachability issues (deleted/protected/withheld...) #twockknock

Usage

Knocking Tweets

twock knock [OPTIONS] TWEETFILE

  Ping (knock) a list of tweets. Expects file path to CSV with `id` column.

Options:
  --outpath TEXT    Path to output file, will be prefixed with today's date.
                    Default: `errors.ndjson`
  --tkpath TEXT     Path to Twitter API v2 bearer token YAML file. Default:
                    `bearer_token.yaml`
  --sample INTEGER  If given, sample INTEGER number of tweets only
  --help            Show this message and exit.

Authentification

You need to have access to the Twitter V2 API and t obtain a valid bearer token. Replace the template value in bearer_token.yml with your actual credentials.

Developer Install

  1. Install poetry
  2. Clone repository
  3. In the cloned repository's root 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

twock-0.1.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

twock-0.1.2-py3-none-any.whl (4.5 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