prahul11 2023-10-16 10:02:49 +05:30
parent c9c3d4de92
commit 9ba51ae06b
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ class NaukriJobScraper:
if response.status_code != 200: if response.status_code != 200:
print(response.status_code) print(response.status_code)
print(response.reason) print(response.reason)
print(response.text)
print(f"Error with page {start_page} for industry {industry_name}") print(f"Error with page {start_page} for industry {industry_name}")
with open(self.error_file_path, "a") as file: with open(self.error_file_path, "a") as file:
file.write(f"Error with page {start_page} for industry {industry_name}\n") file.write(f"Error with page {start_page} for industry {industry_name}\n")