Webscraper for Bachelor-prosjekt 🦾
Co-authored-by: haraldnilsen <harald_998@hotmail.com> Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> |
||
|---|---|---|
| .gitignore | ||
| config.py | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
Webscraper needed for Helseveileder
Part of Bachelor-project V2024
📝 Info
This webscraper will retrieve questions and answers, as well as the category assigned to the question, from Studenterspør.no. This will be used in our Bachelor project.
📋 Prerequisites
- Python 3.x
- httpx ~ HTTP client
- HTMLParser (from
selectolax.parser) ~ a fast HTML5 parser with CSS selectors - re ~ regular expression matching operations
🛠️ How to run locally
- Create Python environment:
python -m venv venv - Activate environment:
source venv/bin/activate - Install requirements:
pip install -r requirements.txt - Run main.py to get a csv.file:
python main.py