Rolfff / Visametric-Termin-Bot

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

Error #5

Open MariaRsA opened 1 year ago

MariaRsA commented 1 year ago

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
MariaRsA commented 1 year ago

This is a Code Change screenshot

image

Rolfff commented 1 year ago

Ja, es hat sich alles geändert. Ich habe das Script jetzt umgeschrieben. -> https://github.com/Rolfff/Visametric-Termin-Bot/tree/new_botdetection Ich teste es noch kurz mit Windows. Aber dann solltest du es neu runterladen. Dieser Fehler hat sich damit erledigt.

Rolfff commented 1 year ago

Ich habe den Master-Branch geupdatet. Du solltest noch "pip install undetected-chromedriver" und den Chrom Browser installieren.

MariaRsA commented 1 year ago

Vielen Dank. Ich habe nochmal probiert. Es kommt ein Fehler vor in dem Schritt wo ein Verifizierung Code per Email versendet wird. Den Browser wird automatisch geschlossen. Ich habe den Verifizierungscode erhalten aber man kann den Code nicht eingeben.
Exception ignored in: <function Chrome.del at 0x00000283F59DE160> Traceback (most recent call last): File "C:\Users\maria.azad\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver__init.py", line 793, in del File "C:\Users\maria.azad\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver\init__.py", line 748, in quit OSError: [WinError 6] Das Handle ist ungültig

Rolfff commented 1 year ago

Wird dir gesagt an welcher Zeilennummer in der termin-bot.py das Script beendet wird? Du kannst vor die Zeile time.sleep(600) einfügen. Dann hast du 10 Minuten zeit die restlichen Schritte manuell zu machen. Wahrscheinlich irgenwann nach 325 ?