Extract MCQs

Extract MCQs from the Popular Site https://www.sanfoundry.com

Author
themrsami
Daily installs
0
Total installs
33
Ratings
0 0 0
Version
2.5
Created
2023-05-19
Updated
2024-02-26
License
MIT
Applies to

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▄▄░▄▄██░██░██░▄▄▄██░▄▀▄░██░▄▄▀██░▄▄▄░█░▄▄▀██░▄▀▄░█▄░▄
███░████░▄▄░██░▄▄▄██░█░█░██░▀▀▄██▄▄▄▀▀█░▀▀░██░█░█░██░█
███░████░██░██░▀▀▀██░███░██░██░██░▀▀▀░█░██░██░███░█▀░▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

This Tampermonkey script is designed to extract multiple choice questions (MCQs) from a Sanfoundry webpage and save them to an HTML file in a quiz format. The script only runs on Sanfoundry webpages that contain MCQs.

When the script is activated on a Sanfoundry webpage, it adds a big green “Extract MCQs” button to the top right side of the page. When the user clicks on this button, the script scrapes the MCQs from the page and generates an HTML file containing the questions, options, and answers in a quiz format. The user can then download this file and use it to study or practice the MCQs.

The script uses regular expressions to identify and extract the MCQs from the page. It also adds some interactivity to the quiz by allowing the user to click on options to see if they are correct or incorrect and to view the answer and explanation for each question.

Overall, this script provides a convenient way for users to extract MCQs from Sanfoundry webpages and save them in a format that is easy to use for studying or practicing.

Website Used For Scraping : https://www.sanfoundry.com/


Follow Me on Github : https://github.com/themrsami