Send tweet peridically to avoid ban from Elon
Find a file
Mylloon 27205063f2
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
be sure to have the password between quotes
2023-05-16 02:34:47 +02:00
.woodpecker Add woodpecker job 2023-05-16 01:54:13 +02:00
bin use headless mode 2023-05-16 02:18:35 +02:00
lib add some optional logging 2023-05-15 16:28:24 +02:00
test dune init 2023-05-12 08:30:56 +02:00
.gitignore Add docker image 2023-05-16 01:41:19 +02:00
.ocamlformat add ocamlformat 2023-05-12 09:52:22 +02:00
Dockerfile typo 2023-05-16 02:11:13 +02:00
dune-project add deps inside dune 2023-05-15 10:23:35 +02:00
pusk.opam add deps inside dune 2023-05-15 10:23:35 +02:00
README.md be sure to have the password between quotes 2023-05-16 02:34:47 +02:00

Pusk status-badge

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"
      - 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 tls-lwt 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.