Send tweet peridically to avoid ban from Elon
Find a file
Mylloon 5dc36fd9d3
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
better error message
2024-03-09 14:49:13 +01:00
.forgejo update to new woodpecker syntax 2024-01-26 16:08:20 +01:00
bin close the driver on crash 2024-01-26 15:49:25 +01:00
lib better error message 2024-03-09 14:49:13 +01: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 use ocaml 5.1 instead of 5.2 2024-01-26 16:07:28 +01:00
dune-project update dependencies 2024-01-26 15:44:11 +01:00
pusk.opam update dependencies 2024-01-26 15:44:11 +01:00
README.md notice on firefox 2024-01-26 16:02:27 +01: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 # take care, you need to double $ signs in your password
      - TWITTER_TOTP=yourseed # optional if you don't have 2fa
      - PUSK_DEBUG=FALSE # optional
      - PUSK_HASHTAG=TRUE # optional, will add an hashtag to tweets
    restart: unless-stopped

Local

  • Firefox installed

  • 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.