Send tweet peridically to avoid ban from Elon
Mylloon
3f415cf9e1
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
* now use the home page to tweet, instead of relying of clicking on tweet page |
||
---|---|---|
.woodpecker | ||
bin | ||
lib | ||
test | ||
.gitignore | ||
.ocamlformat | ||
Dockerfile | ||
dune-project | ||
pusk.opam | ||
README.md |
Pusk
Send a tweet to prevent Twitter from closing your account, using a webdriver.
How to use?
With Docker
You can use this dockercompose template:
version: "3.9"
services:
pusk:
image: git.mylloon.fr/anri/pusk:latest
container_name: Pusk
environment:
- TWITTER_USERNAME=yourusername # not your mail
- TWITTER_PASSWORD=yourpassword # take care, you need to double $ signs in your password
- TWITTER_TOTP=yourseed # optional if you don't have 2fa
- PUSK_DEBUG=FALSE # optional
restart: unless-stopped
Local
-
You will need these dependencies:
$ opam install cohttp-lwt-unix dotenv twostep lwt_ssl yojson core
-
Populate your credentials in config/.env
-
Then you can run the bot with:
$ dune exec pusk
Name history
Derived from Elon's name :D. Thanks, Elon, for destroying Twitter.