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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| twock-0.1.2.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|