We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url=links[x] try: response=requests.get(url,headers=HEADERLISTS,proxies={"http":proxy_lists[prox_index]},timeout=(10,10)) except Exception as e: print("Error : ",e) sys.stderr = open('error.log', 'a+', encoding='utf-8') traceback.print_exc() sys.stderr.close() prox_index+=1 time.sleep(1) continue if response.status_code==404: print("status code 404") prox_index+=1 CURRENT_NUMBER+=1 x+=1 time.sleep(1) continue if response.status_code!=200: print("status code: ",response.status_code) prox_index+=1 time.sleep(1) continue time.sleep(1) prox_index+=1 CURRENT_NUMBER+=1 x+=1
This is my code. Script running After sometime response is not comming and get stuck. Next iteration is not going. Please give me solution.
The text was updated successfully, but these errors were encountered:
This doesn't look like a bug with requests library but with your code. Please ask in StackOverflow and using the python-requests tag.
python-requests
Sorry, something went wrong.
No branches or pull requests
This is my code. Script running After sometime response is not comming and get stuck. Next iteration is not going. Please give me solution.
The text was updated successfully, but these errors were encountered: