By Open Course API
- Python 3.7,
pip
, andpipenv
- Energy to start hacking 🚀
Install pipenv
if you haven't already:
pip install pipenv
# OR
pip3 install pipenv
Clone live-fhda-class-data and this repo, and install its dependencies:
mkdir opencourse
cd opencourse
git clone https://github.com/OpenCourseAPI/live-fhda-class-data.git
git clone https://github.com/OpenCourseAPI/data-analysis.git
cd data-analysis
pipenv install # this may take some time
Note: it is recommended to create a folder such as
opencourse
and clone these repos in that folder, for better organization and usability of the repos.
Run the following in your terminal:
pipenv run cli start
You should see something like:
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.1.XX:8501
Navigate to the specified URL in your browser and enjoy!
To manually generate db/<term>.sqlite3
files, run the following:
pipenv run cli generate [--term Fall2020] [--interval-time 60] [OPTIONS]
For more information, use:
pipenv run cli generate --help
To convert an SQLite DB file into CSV format, run the following:
pipenv run cli to_csv SRC_FILE [DEST_FILE]
# Examples:
pipenv run cli to_csv db/temp_202131.sqlite3 # will generate db/temp_202131.csv
pipenv run cli to_csv db/temp_202131.sqlite3 dump.csv # specify custom file
For more information, use:
pipenv run cli to_csv --help
We welcome all contributions! Have an idea or found a bug? Feel free to open an issue or a PR.
The MIT license