twitter-threader
Introduction
Twitter Thread is a library to manage threads on Twitter. You can GET and POST threads on Twitter.
Installation
pip install twitter_threader
Usage
GET a thread on Twitter
from twitter_threader.threader import connect_api, Thread
consumer_key = 'CONSUMER_KEY'
consumer_secret = 'CONSUMER_SECRET'
access_token_key = 'ACCESS_TOKEN'
access_token_secret = 'ACCESS_TOKEN_SECRET'
api = connect_api(consumer_key, consumer_secret, access_token_key, access_token_secret)
thread = Thread(api)
thread.convert_to_post('1247616218153902080')
POST a thread on Twitter
from twitter_threader.threader import connect_api, Thread
consumer_key = 'CONSUMER_KEY'
consumer_secret = 'CONSUMER_SECRET'
access_token_key = 'ACCESS_TOKEN'
access_token_secret = 'ACCESS_TOKEN_SECRET'
api = connect_api(consumer_key, consumer_secret, access_token_key, access_token_secret)
thread = Thread(api)
username = 'YOUR USERNAME'
thread.post_thread(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Metus dictum at tempor commodo ullamcorper a lacus. Amet justo donec enim diam vulputate. Sit amet justo donec enim diam vulputate ut pharetra sit. Leo duis ut diam quam. At ultrices mi tempus imperdiet. Mauris augue neque gravida in fermentum. Fermentum posuere urna nec tincidunt praesent semper feugiat nibh. Placerat vestibulum lectus mauris ultrices eros in cursus turpis massa. In aliquam sem fringilla ut morbi tincidunt augue.',
username)
Metadata
Release files for twitter-threader 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twitter_threader-1.5.1.tar.gz | 2.9 kB | Without provenance | Details for twitter_threader-1.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twitter_threader-1.5.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for twitter_threader-1.5.1-py2.py3-none-any.whl |
Total release size: 6.8 kB
Release files / twitter_threader-1.5.1.tar.gz
| Download URL | twitter_threader-1.5.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
557471a4dbb246752aaa68e55bd16ecb93316ba13df26a35461fd0dbd6e1059f
|
|
BLAKE2b-256 checksum How to use checksums |
478eb9caf278934e1c2dc2df9defd0d6161fa7d620ef7851965883962f3322a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / twitter_threader-1.5.1-py2.py3-none-any.whl
| Download URL | twitter_threader-1.5.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ba3fd80d309a0d5b9efc435f834a69510537d4f248909fc8e1c13c235a10ba9a
|
|
BLAKE2b-256 checksum How to use checksums |
e5d27e64ca137bf3ff2405f3f5429c42b55780139a644335db4d7f395f61c404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for twitter-threader 1.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.