A Python script to scrape contact details of schools from CBSE directory using Selenium and BeautifulSoup
The script will scrape details from http://cbseaff.nic.in/cbse_aff/schdir_Report/userview.aspx into a sheet.
- Install selenium
- Install Chrome Webdriver
- Run
scrape_cbse.py
- The results will be extracted to
COMPLETE.CSV
The single-page.py
was made to test scraping from an individual page (samplePage.txt
here) and output to details.csv
- Download chrome webdriver from http://chromedriver.chromium.org/downloads
- Copy it into
/usr/local/bin/chromedriver on macOS
OR Use brew cask install chromedriver