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
- Install poetry
- Clone repository
- In the cloned repository's root directory run
poetry install - Run
poetry shellto start development virtualenv - Run
twacapicto enter API keys. Ignore the IndexError. - Run
pytestto run all tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596793da15d3f041d9beb974a1c36c3d131d04a8238a807e58dbd1b1b4cbe007
|
|
| MD5 |
cd27bc12539b6f361b5337846e2b48ba
|
|
| BLAKE2b-256 |
ee25b53a70026093f931300a435c81e9510b878d44a47c9970f13d387fb75ae0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
204b8341da25b87e02da8897d6c78ac5d4d0c3d39c4a3e6bd46029b5dccac868
|
|
| MD5 |
89fe81bf2dd7824c05845df1d24f6867
|
|
| BLAKE2b-256 |
84496e6c81ec3bcafb23da1d3fb8769356b750736225c7ce022b3586023ced19
|