open url from pythonanywhere
This code works well on my local machine, but when I upload and run it on pythonanywhere.com it gives me this error.
My Code:
This code works well on my local machine, but when I upload and run it on pythonanywhere.com it gives me this error.
My Code:
I try to fetch a Wikipedia article with Python’s urllib:
There’s a lot of stuff out there on urllib2 and POST calls, but I’m stuck on a problem.
I’m writing a script(multi-threaded) to retrieve contents from a website, and the site’s not very stable so every now and then there’s hanging http request which cannot even be time-outed by socket.setdefaulttimeout(). Since I have no control over that website, the only thing I can do is to improve my codes but I’m running out of ideas right now.