search working but at 50%

This commit is contained in:
Mylloon 2021-08-23 14:02:36 +02:00
parent fcc4af88af
commit 01abdeff8c

View file

@ -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)