From 7e65c813fd9a8a2f791253505fb088c3ab50602c Mon Sep 17 00:00:00 2001 From: Halcy0nic Date: Wed, 4 Sep 2024 13:32:46 -0600 Subject: [PATCH] Chore: Updating app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 54b712d..d04c8da 100644 --- a/app.py +++ b/app.py @@ -145,7 +145,7 @@ def parse_and_store_data(): try: print(f"Fetching data from {url}") response = requests.get(url, headers=headers, timeout=10) - print(f"Status code: {response.status_code}") + if response.status_code == 200: soup = BeautifulSoup(response.text, 'html.parser') table = soup.find('table')