A solution to minimizing the number of BU courses you have to take to fulfill HUB Requirements
python3.9 -m pip install --upgrade pip
python3.9 -m venv venv
source venv/bin/activate
pip install Flask
pip install python-dotenv
pip install psycopg2
pip install flask_sqlalchemy
pip install ortools
pip install flask_cors
npm install -g @angular/cli
pip install flask-migrate
pip install selenium
pip install requests
To get stable version of selenium's ChromeDriver go here: GoogleChromeLabs. May then need to run the binary from Finder to grant your system permission to open it.
You must use two separate terminals so you can run the frontend in one and the backend in the other.
python3.9 app.py
cd frontend
ng serve
- Connecting to a certain DB as a specific user
psql -U username -d database_name
- Listing data tables
\dt
- Showing data table schema
\d table_name
- Showing roles of DB
\du
- Showing data within a data table
SELECT * FROM table_name;
- Access to 127.0.0.1 was denied ( visit
chrome://net-internals/#sockets
andFlush socket pools
)
- Navigate to MyBU Student --> Class Information --> Course Search
- Inspect and open network tab
- Click the "Search" button and right click on the request and copy as cURL
- Paste it into a cURL to Python converter like Curl Converter to get the Python request
- Copy result into scrape.py where necessary