- https://github.com/satyarth8/BEU-Result-Scraper-and-Excel-Generator/blob/main/BEU%20result%20scraper.ipynb
- Follow the Instructions below...
- Comply with Fair use and read the Legal Disclaimer
Open a terminal or command prompt and install the required libraries by running the following commands:
pip install requests
pip install beautifulsoup4
pip install pandas
- Replace the
base_result_url
variable with the actual URL of the result page. - Set the range of roll numbers for regular and lateral entry students in the for loops.
- Replace the
desktop_path variable
with the actual path to your desktop. - Set the
excel_filename
variable to the desired name for the Excel file.
- Save the script to a file (e.g., result_scraper.py) and run it using Python (e.g., python result_scraper.py).
- The script will fetch the results for the specified roll numbers, extract the required information, and save it to an Excel file on your desktop.
Note: Make sure to adjust the script according to your specific needs and the structure of the result page. Additionally, be respectful of the website's terms of use and avoid overwhelming the server with too many requests.
I had to handle several cases while working on this project. Here are some of them:
- Name and values returning 'NoneType': I handled this by adding a simple datatype check and returning 'N/A' if the value was missing.
- Server overloaded situation: I handled this by adding a delayed loop of requests to ensure that all requests were eventually processed.
- Different subjects for each branch, semester, and year: I created a function that generates a skeleton of the subject columns based on the first roll number.
- Handling no internet connection: I checked the status codes and retried the request if necessary. Next steps:
Making it more user-friendly: I plan to use the Qt Library to package the code into a software. This will make it easier for users to interact with the code and view the results.
Time complexity: The current time complexity is O(n), which is efficient for scraping the results of around 100 students in a minute. However, this depends on the internet connection and the server's response time.
The BEU Result Automation & Excel Generation project is a Python-based tool designed to automate the retrieval, organization, and reporting of student results from the Bihar Engineering University (BEU) result portal. The script employs web scraping techniques to extract data accurately and efficiently, generating detailed Excel reports for further analysis.
- Python
- BeautifulSoup
- pandas
- requests
The BEU Result Automation & Excel Generation project is intended for educational and non-commercial purposes only. By using this tool, you agree that:
This project is developed solely for educational and learning purposes. It is not intended for commercial use or any other malicious activities.
The BEU Result Automation & Excel Generation project is not endorsed or affiliated with Bihar Engineering University (BEU) or any other educational institution. It is an independent project developed by [Your Name] for educational purposes.
Users of this tool are responsible for their actions and must use it in compliance with applicable laws and regulations. Any misuse of the tool for unauthorized access or illegal activities is strictly prohibited.
Users must ensure that their use of this tool complies with all relevant laws, including but not limited to copyright laws, data protection laws, and terms of service agreements.