prahul11 2023-10-26 17:38:15 +05:30
parent 4f1aa0620f
commit 3dd55ef03e
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class NaukriJobScraper:
print(response.reason) print(response.reason)
print(response.text) 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}")
error_count +=1
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")
# time.sleep(10) # time.sleep(10)