sys_arch_v2.1
Project Overview
A tool to help find CSIT colleges in Nepal.
README.md
CSIT COLLEGES VIEW
A simple project aiming to show all the available colleges with CSIT program
Sources
All college names, location, Bachelor programs and master programs are fetched from
- Constituent : tuiost site
- Affiliated : tuiost site
Demo link
The project demo is deployed here
Tech Stack
- Frontend
- Vanilla HTML, CSS, JS
- Leaflet js for the map and markers
- Data Collection and Cleaning
- python's
requestsmodule was used to get the HTML of pages (mentioned in Sources section) beautifulSoup4was used to parse the HTML and fetch required college names and filtered using presence of CSIT in bachelor program section.opencagewas used to find the coordinates of colleges given their name and location as 'Nepal'- Hand-corrections of the locations were performed.
- python's
How to install
-
Clone the github repository
cd <working-directory> git clone https://github.com/Raman-Shakya/CSIT-COLLEGES-VIEW cd CSIT-COLLEGES-VIEW -
Run the
index.htmlfile in browser -
To fetch the details from the sources and prepare for the view:
- Install required packages and goto fetchColleges directory
pip install -r requirements.txt cd fetchColleges - Run
parse.pyto getcolleges.pypython parse.py - Setup Opencage's API key by getting one in get key
- Set the API key inside
.env.localfile insidefetchCollegesKEY = <YOUR KEY> - Run
get_coor.pyfile to get the approximate coordinates of all colleges incolleges.pyand save it tocollegeCoordinates.jsfile. - Hand correct few errors in college location and save it in
view/coordinates.jsfile, this file should automatically be read by theindex.htmland see the changes.
- Install required packages and goto fetchColleges directory
Note: locations of some colleges are not accurate or some may be greatly off, this is a small hobby project which focuses on the webscraping and building part.
You spot some errors?
- Open a issue under issues notifying any kind of errors!
- You can fork this project and solve yourself! Don't forget to open a pull request to bring your changes in this repository!