From 01abdeff8cf2a685d3abd1de2dfc5e6173c504ea Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 23 Aug 2021 14:02:36 +0200 Subject: [PATCH] search working but at 50% --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c9c26b2..b77c7b4 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,8 @@ class Scraper: def search(self, session) -> str: if self.debug: print("Going to search page...", end = " ") - reponse = session.get(f"{self.url}/index.php") + reponse = session.get(f"{self.url}/search.php", params = {"keywords": self.requested_app, "sr": "topics", "sf": "titleonly"}) + if self.debug: print(reponse.status_code, reponse.url) with open("temp.html", "w") as f: # debug f.writelines(reponse.text)