This repository hosts https://twitter.com/chronodoseparis source code
In May, only slots still available <24h in advance were available for 18-55 year olds.
This bot leveraged https://vitemadose.covidtracker.fr/ to find new available appointments in the "chronodose" section, and double-checked on doctolib their availability, trying to bypass their cache.
It was later used by many twitter accounts in other areas (@ChronodoseTLS @Chronodose54 @ChronodoseNord @Chronodose13 @Chronodose33 @Chronodose_35 @Chronodose5962 @chronodoseclf @Chronodose87 @chronodose29 @Chronodose44)
Create a Twitter app on https://developer.twitter.com/en/apps , and create a Twitter account for your bot.
Tip: To generate Twitter account tokens for a Twitter app, you can use this script https://gist.github.com/PLhery/4c82273e351540be327908c44698b322
You can also run npm run tw-login
after setting you APP_KEY and APP_SECRET in you .env, to directly generate it from your console.
- download the docker-compose.yml file
mkdir chronobot
cd chronobot
curl https://raw.githubusercontent.com/PLhery/chronodose_twitterbot/main/docker-compose.yml -o docker-compose.yml
-
customize the ENVIRONMENT section in the file
vim docker-compose.yml
-
run
docker-compose up -d
-
To update the bot, run
docker-compose pull && docker-compose up -d
docker run -d plhery/chronodose_twitter -e DEPARTMENTS_TO_CHECK=75,92,93,94 -e APP_KEY=XXXX -e APP_SECRET=XXXX -e ACCESS_TOKEN=XXXX -e ACCESS_SECRET=XXXX
- clone the repository
- copy .env.example to .env
- fill the .env file with your Twitter credentials / tweak some options
- to start the bot, either use docker:
docker build . -t plhery/chronobot
docker run -d plhery/chronobot
- Or node 14 +:
npm install
npm run build
npm start
- To start in the background, for instance you can use pm2:
npm install -g pm2
pm2 start chronobot