This is a Python-built CLI quiz for quizzes from ExamTopics.
It gets questions from pages (saved locally as HTML at the moment),
shuffles them, you pick answers and then you are shown a
final score and then questions you got wrong are
written in a .txt
file. Correct answers are taken from the
discussions.
It looks like this (example from the Google ACE exam, obviously without the red markings):
This was initially tested on Windows and seems to work alright on this OS.
Note for ACE: If you want the quiz for Google Associate Cloud Engineer, you can get the needed HTML file
here.
Just unzip the archive and put it in a directory named res
in the ExamTopicsQuizMaker directory AFTER you clone it and jump to step 6.
- Clone the repository with
git clone https://github.com/awfulwaffle77/ExamTopicsQuizMaker.git
or by going in the upper part of the page, clicking Code > Download ZIP (and unzip the archive) - Create a new directory in the directory of the repository(inside ExamTopicsQuizMaker),
named
res
- Go to the exam page that you want (ex. https://www.examtopics.com/exams/google/associate-cloud-engineer/view/)
- CTRL+s to save the page. It has to be HTML. Save it in the
res
directory - Repeat for all pages in the exam
The structure of the folder should now be:
📁ExamTopicsQuizMaker
|-> 📄 main.py
|-> 📄 requirements
|-> 📄 quiz.py
|-> 📄 _classes.py
|-> 📁 res
|-> 📄 all pages needed, in HTML format
- Install requirements with
pip install -r requirements
- Run
main.py
withpython main.py
or however your python3 command is called - Choose how many questions you want per run. This is if you want to have a set of only n question before finishing and checking for wrong questions, where n is the number you choose
- Choose if you want the correct answer shown immediately after giving an answer or choose "no" if you want to only check the file at the end of the quiz (a file is generated anyway)
- Answer the questions
- Review the .txt file that has been created when you have started the quiz
Create the res
directory after cloning the repository
Go to the exam page and save it
How the res
directory should look after saving all the needed pages
Run main.py
& get your quizzes done!
Yes and no. Due to the fact that ExamTopics uses a lot of captchas, this automation process would be accessible to people with contributor access, as that disables captchas.
At this moment (5th of May 2022):
- scraping is done correctly from the HTML of ExamTopics pages.
- quizzes seem to be looking fine
If you encounter any type a bug, please let me know by creating an issue.
I am aware that there is at least one question with multiple answers. To
answer those questions you have to write both answers concatenated,
without space. For example, if the correct answers are B
and E
, you
have to write BE
.