This repository has been archived on 2024-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
helseveileder_webscraper/README.md
Sindre Kjelsrud 2fd2047a73
📝 update README
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-08 17:54:15 +01:00

838 B

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

  1. Create Python environment: python -m venv venv
  2. Activate environment: source venv/bin/activate
  3. Install requirements: pip install -r requirements.txt
  4. Run main.py to get a csv.file: python main.py