Python and Selenium automation to scrape a course's dictionary and automatically complete the levels
NOTE - I've included a pre-made dictionary file for this course
If this get enough attention I'll recode it into a browser script for way easier usage
- Python - https://www.python.org/downloads
- Chrome (or any other browser with the appropriate driver)
- Chromedriver - https://chromedriver.chromium.org
- Selenium -
pip3 install selenium
Open the scripts you'll use and:
- put the path of your chromedriver into
PATH =
- put the ID of your course into
courseid =
I've split the next into 3 sections depending on what you already have and want to acheive
- Properaly format and create the dictionary file - Create dictionary
- Auto complete levels - Levels
- Auto speed review - Speed review
You can use or modify my included dictionaryscraper.py
(it only scrapes up to 16 words per level) or create your own script
If you want to use my included dictionaryscraper.py
:
- Create a file named
memrise.json
in the same folder - Find
level ==
and change that to the number of total levels in the course - NOTE - This scraper is written to get a max of 16 words per level (feel free to change that)
If you want to create your own scraper:
- Make sure it is formatted as my example
memrise.json