Dieses Skript scrapt die Fragen und Antworten für den deutschen Einbürgerungstest von http://oet.bamf.de/ . Sie werden in einer Sqlite3 Datenbank gespeichert und dann exportiert, um mit Anki zu nutzen.
Install the requirements (just selenium at the moment)
pip install -r requirements.txt
Download geckodriver and run this script with its directory in the PATH, e.g.
env PATH=$HOME/Downloads:$PATH python3 scrape.py
If you get an error in Ubuntu about your profile not being accessible, try setting a TMPDIR:
mkdir tmp
env PATH=$HOME/Downloads:$PATH TMPDIR=./tmp python3 scrape.py
This will generate a csv file and a directory with the question images.
python3 output.py
Thanks to @nikste and @prepor for their contributions!