A mini script to retrieve and display images from the university's (iykyk) database on a webpage. The valid input range for the API is currently unknown, so you can choose any range between 1 and 100,000. Hopefully, that should cover it ;)
- Clone this repository to your local machine.
git clone https://github.com/BugReportOnWeb/unistud-image-db.git
cd unistud-image-db
- Install the dependencies
pip3 install -r requirements.txt
- Change the
START
andEND
values inmain.py
.
START = 53675 # Replace with your starting range value
END = 53725 # Replace with your ending range value
- Run the script.
python3 main.py
The script will start scraping the data (if found) between the specified range.
- Open the
index.html
file to see the result.
open index.html
- Jinja2 (3.1.2) - JA very fast and expressive template engine.
- requests (2.31.0) - Python HTTP for Humans.
To be honest, I'm not sure. Perhaps find a valid range for the current batch and fix the values accordingly, having it all on a server.