VaccineBotTO on Twitter
Project page: https://lindayi.me/vaccinebotto/
- python (tested on 3.7.4)
- selenium (tested on 3.141.0)
- undetected_chromedriver (tested on 2.2.1)
- tweepy (tested on 3.10.0)
- gspread (tested on 3.7.0)
- pytz (tested on 2019.3)
- For the detailed process of obtaining credentials for your Twitter account, please see https://realpython.com/twitter-bot-python-tweepy/#creating-twitter-api-authentication-credentials
- For the detailed process of obtaining credentials for your Google service account, please see https://docs.gspread.org/en/latest/oauth2.html
- Update the following storage-related variables in
config.py
:BASE_PATH
,SHEET_URL_ID
, and optionally,CRAWLER_FILE
. - Update the following credential variables in
config.py
:TWITTER_CONSUMER_KEY
,TWITTER_CONSUMER_SECRET
,TWITTER_ACCESS_KEY
,TWITTER_ACCESS_SECRET
,SHEET_KEY_FILE
. - Update the
CAPTCHA_KEY
for Verto Health API inconfig.py
. The Key can be obtained by going to the Verto Health booking site, solve the CAPTCHA once, land on the date selection page and inspect the network request to theavailability
endpoint when you select any date. It is the string value in theauthorization
request header, in the format ofBearer ...
. You only need to put what's afterBearer
into theCAPTCHA_KEY
variable inconfig.py
. - (Optional) Modify any other configurations of interest in
config.py
to adjust the scope, behavior, and Tweet template. - Set up cron job to run the bot periodically. For example,
*/5 * * * * python3 /projects/vacbot/vacbot.py >> /projects/vacbot/output.log