For VFS Global v2, contact me. the v2 code which bypasses the captcha and does everything automatically is private at the moment.
the (private) v2 repo: https://github.com/HosseinOutward/VFS-Bot-V2
This repo is modified for VFS v1 (originally made by @hnavidan and @jeromin) This Python script automatically checks available VFS appointments and notifies the earliest opening via Telegram.
All logged Messages will be sent in the conversation where you initiate the /start
command.
It can be yours or a chat group where you added the bot.
This way you and other people can track the journey of the robot and command the bot on telegram.
Important messages, as few as possible, such as when the appointment appears and is available, and rarely errors, are sent to the channel_id
where you can also add friends to be warned.
See requirements.txt
for Python packages
System library tesseract
is needed.
- Clone the repo.
- Install the dependencies.
- Create a Telegram bot using BotFather and save the auth token.
- Make a Telegram channel to notify the appointment updates.
- Use @username_to_id_bot or @myidbot to find the channel id and your own account id.
- Copy the config.ini.dist as config.ini and fill in the fields.
- Edit the ajaxRequest.js file to match your visa center locations parameters.
- Run the script and /start the bot from telegram !
It uses OpenCV along with Tesseract to recognize the captcha. It can be low, sometimes it takes 10-15 tries, but it works (and for free !).
Add the created bot in the channel you want to post updates to. Make sure to specify your account id (or several accounts) as admin_ids in the config.ini, it prevents others from using the bot, which might cause unexpected behaivor.
Here are the bot commands to use from telegram :
/help
: Prints the help message./start
: Starts the bot./quit
: Stops the bot. (It can be started again using /start as long as the Python script is running.)/check
: Ask for a new spontaneous appointment check
VFSBot.py command as an optionn --no-headless
for testing and debugging purpose.
It actually opens the chrome browser and you can visually follow every actions.
Feel free to improve this version by submitting a pull request.
As VFS appointments cause problems all over the world and with so many different websites, we could handle them all.