project started, 200 OK received

Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-01-05 12:13:58 +01:00
parent 718a20d3ab
commit e7b6390dd5
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6

9
main.py Normal file
View file

@ -0,0 +1,9 @@
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)