Coder Social home page Coder Social logo

rolfff / visametric-termin-bot Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 112 KB

This Python Selenium script helps to find available dates for legalization of documents by the [German Embassy](https://teheran.diplo.de/) in Tehran.

Python 100.00%

visametric-termin-bot's Introduction

Selenium Visametric Termin Bot

This Python Selenium script helps to find available dates for legalization of documents by the German Embassy in Tehran. The script only helps to enter your personal data. You need to solve the Google Recaptcha for each operation.

Ethics notes

  • This script should help Iranian citizens to get an appointment at Visametric in the foreseeable future without having to spend a lot of money on the black market. It gives them the opportunity to work with similar or the same weapons as the appointment traders.
  • Additionally, it can be used to document the appointment method of the German Embassy in Tehran and collect evidence for future complaints or court proceedings.
  • Please feel free to adapt this script to future new conditions of the Visametic website.

Notes

  • It is tested and developed January 2023 for the first time. When the page is rebuilt, the script should be adjusted.
  • At the moment it works only if you have paid with card the Visametirc deposit.
  • The Script does not check the Transaction ID. It takes the first one.
  • The Script take the first found time slot and stops.
  • The bot works only with the german formular. (You are invited to extend the script to other languages.)

Install

  1. First install Python3 on your system.
  1. Run Python3 in command prompt
  2. Installing Python3 packages: Copy and paste the following lines into the command prompt.
pip install -U selenium
pip install fake-useragent
pip install undetected-chromedriver
  1. Install Google Chrome on your system. Make sure that Chrome runs without problems on your system.

Optional for linux:

  • sudo apt install speech-dispatcher

Usage

  1. Downloard this script.
  2. Rename the 'config_example.py' file to 'config.py'.
  3. Fill config_example.py with your data.
  4. Open the command prompt at the location from the downloaded files and run python3 ./termin-bot.py
  5. Answer the captcha and wait. Good luck!
  6. If you want to help improve the situation for others, share your log file (see "LOGFILE": "./Visametric.log" path at your config.py) with us. We will document it here.

Contribute

open an Issue fore questions or bugs. Or you can fix it yourself and create a change request.

visametric-termin-bot's People

Contributors

rolfff avatar

Stargazers

Yangyi Huang avatar  avatar  avatar

Watchers

 avatar

Forkers

zigbalthazar

visametric-termin-bot's Issues

not running in mac nor windows as of nov 2023

Hi and thanks for the fantastic work.
Rigth now I've tried installing it in both windows and mac but I get errors in both systems

In windows: AttributeError: 'ChromeOptions' object has no attribute 'headless'
In Mac: ModuleNotFoundError: No module named 'distutils'

I know you're probably busy but I'd appereciate it if you could look at this. My friend has got this module error too.
Thanks in advance
Screenshot 3

Solving Captcha Reloads Page

Hello
I want to thank you for your efforts to help the people to get around this corrupt system.
If been trying to run your script and after downgrading Chrome to 1.14 I got it running. Now it opens the page with the Cloudflare Captcha overlay. When I solve the Captcha the site just reloads, there is no error or message from Cloudflare. It's simply reloading the site when I solve the Captcha and after the 3-4 Captcha the "time_sleep" is reached and a new tab opens with the same problem.
I would appreciate any help.

Problem with Run

I tried to run the Bot but i recieve this Error -> UnboundLocalError: cannot access local variable 'GECKOPATH' where it is not associated with a value. Could you please help me?

Error

Hello again,
ich have problem with this Error
Traceback (most recent call last):
File "C:\Users\maria.azad\Downloads\Visametric-Termin-Bot-master\Visametric-Termin-Bot-master\termin-bot.py", line 317, in
s = Search()
^^^^^^^^
File "C:\Users\maria.azad\Downloads\Visametric-Termin-Bot-master\Visametric-Termin-Bot-master\termin-bot.py", line 59, in init
options.binary_location = c.install["win_binary_location": r'C:\Program Files\Mozilla Firefox\firefox.exe']
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'slice'

could you please help me?
can you speak German?
Thank you so much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.