This is a crawler to crawl data from sanfoundry.com and store it in a json file. This crawler is written in python using Flask to create a REST API to crawl data from sanfoundry.com.
git clone https://github.com/TienNHM/crawl-sanfoundry-mcqs.git
pip install Flask
pip install requests
pip install beautifulsoup4
pip install jsonify
python app.py
GET /mcqs/<url>
Example:
GET /mcqs/operating-system-mcqs-memory-management-swapping-1
Note: The url is the last part of the url of the page on sanfoundry.com. For example, the url of the page https://www.sanfoundry.com/operating-system-questions-answers-memory-management-swapping-1/
is operating-system-mcqs-memory-management-swapping-1
.