From e7b6390dd5fae65caa799658c6054da7df359bd4 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Fri, 5 Jan 2024 12:13:58 +0100 Subject: [PATCH] :sparkles: project started, 200 OK received Co-authored-by: haraldnilsen Signed-off-by: Sindre Kjelsrud --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..b717fd6 --- /dev/null +++ b/main.py @@ -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)