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/main.py

10 lines
308 B
Python
Raw Normal View History

import httpx
from selectolax.parser import HTMLParser
url = "https://www.studenterspor.no/kropp-sex-og-identitet/#/sykdom-og-symptomer"
headers = {"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"}
response = httpx.get(url, headers=headers)
print(response.status_code)