Schedule Tweet
Automated tweet scheduling using TweetDeck. Uses Selenium to spawn a browser, log in to TweetDeck with your credentials, and schedule a tweet on your behalf by clicking on things in the app.
Installation
Install geckodriver. On macOS with Homebrew you can use brew install geckodriver. Then…
..code:: shell
$ pip install schedule_tweet
Only Python 3.6 and higher is supported.
Usage
..code:: python
>>> import os
>>> from datetime import datetime, timedelta
>>>
>>> import schedule_tweet
>>>
>>> username = 'schedule_tw'
>>> password = os.getenv('PASSWORD')
>>> now_dt = datetime.now()
>>>
>>> with schedule_tweet.session(username, password) as session:
... dt = now_dt + timedelta(minutes=2)
... session.tweet(dt, f'First Tweet 🚀 {dt.isoformat()}')
...
... dt = now_dt + timedelta(minutes=3)
... session.tweet(dt, f'Second Tweet 💥 {dt.isoformat()}')
Tests
Obviously, TweetDeck authors can change anything anytime, which may or may not break this tool. That’s why it is tested by a regular nightly Travis CI build. If it’s able to schedule a tweet in the sample @schedule_tw <https://twitter.com/schedule_tw>_ account, it assumes the tool still works and the build will pass. If the build badge is red, it means the tool doesn’t work anymore and it needs to be updated.
Why
Twitter doesn’t provide scheduling tweets in their API. It is provided only as a feature of TweetDeck, their advanced official client. Unlike other clients which support scheduling tweets, TweetDeck is free of charge, it is an official tool made by Twitter themselves, and it supports teams.
The schedule-tweet tool was originally built to save precious volunteering time of the PyCon CZ 2017 social media team.
Metadata
Release files for schedule-tweet 1.0.0
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 |
|---|---|---|---|---|
| schedule_tweet-1.0.0.tar.gz | 6.1 kB | Without provenance | Details for schedule_tweet-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| schedule_tweet-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for schedule_tweet-1.0.0-py3-none-any.whl |
Total release size: 14.6 kB
Release files / schedule_tweet-1.0.0.tar.gz
| Download URL | schedule_tweet-1.0.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5cd9756301337450d183b1b93971c7887f5fbc4239959f0135c00a8de364d9d
|
|
BLAKE2b-256 checksum How to use checksums |
f607f19186daae4d49e352c9bc4290d73e42b665a0851d08102c9864bc2c1339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / schedule_tweet-1.0.0-py3-none-any.whl
| Download URL | schedule_tweet-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
663616d882c7aa1c3850e5225d90aeb7bf9824bebc04f4c969fd6011543f9cad
|
|
BLAKE2b-256 checksum How to use checksums |
ac53384b05858236534e00e9e5c78c32da718e6d61b01210ac31e9d27260d0a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for schedule-tweet 1.0.0
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.