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 details)

Uploaded Source

Built Distribution

twock-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file twock-0.1.2.tar.gz.

File metadata

  • Download URL: twock-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.7 Darwin/20.6.0

File hashes

Hashes for twock-0.1.2.tar.gz
Algorithm Hash digest
SHA256 596793da15d3f041d9beb974a1c36c3d131d04a8238a807e58dbd1b1b4cbe007
MD5 cd27bc12539b6f361b5337846e2b48ba
BLAKE2b-256 ee25b53a70026093f931300a435c81e9510b878d44a47c9970f13d387fb75ae0

See more details on using hashes here.

File details

Details for the file twock-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: twock-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.7 Darwin/20.6.0

File hashes

Hashes for twock-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 204b8341da25b87e02da8897d6c78ac5d4d0c3d39c4a3e6bd46029b5dccac868
MD5 89fe81bf2dd7824c05845df1d24f6867
BLAKE2b-256 84496e6c81ec3bcafb23da1d3fb8769356b750736225c7ce022b3586023ced19

See more details on using hashes here.

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