A Selenium based scraper for student info in BITS Pilani, Goa Campus
If you have only python 3 installed try
python
instead of python3
macOS:
python3 -m pip install -r requirements.txt
./geckodriver-install.sh
xattr -r -d com.apple.quarantine geckodriver
Linux:
python3 -m pip install -r requirements.txt
./geckodriver-install.sh
Windows:
- Firefox
- Python 3
- Geckodriver
- Run the below code
python3 -m pip install -r requirements.txt
- The main scrapper can be run as follows
python swd_scrapper.py <filename>
- If there is a file called
data.csv
in thecsvs
folder then mentioning the filename is optional. - SWD Website mandates the entry of username and password. Hence enter the username and password when prompted.
- Instructions for the source file:
- The source file contains the names and IDs of the students whose names are to be extracted.
- Make sure that the names are put inder column name
Name
and IDs are put under column nameId
.
- The extracted data will be saved in the
csvs
folder with filenamedata_extracted.csv
Please feel free to put up any issues or bugs in Issues. Feel free to contribute by sending a Pull Request.