Skip to main content

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

Metadata

Release files for twock 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twock 0.1.2
File Size Uploaded
twock-0.1.2.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twock 0.1.2
File Interpreter ABI Platform
twock-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / twock-0.1.2.tar.gz

Download URL twock-0.1.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
596793da15d3f041d9beb974a1c36c3d131d04a8238a807e58dbd1b1b4cbe007
BLAKE2b-256 checksum
How to use checksums
ee25b53a70026093f931300a435c81e9510b878d44a47c9970f13d387fb75ae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.7 Darwin/20.6.0

Release files / twock-0.1.2-py3-none-any.whl

Download URL twock-0.1.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
204b8341da25b87e02da8897d6c78ac5d4d0c3d39c4a3e6bd46029b5dccac868
BLAKE2b-256 checksum
How to use checksums
84496e6c81ec3bcafb23da1d3fb8769356b750736225c7ce022b3586023ced19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.7 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page