I have code that uses mechanize and beautifulsoup to web search for some data. The code works fine on a test machine, but the production machine blocks the connection. The error I get is:
urlopen error [Errno 10053] An established connection was aborted by the software in your host machine
I read similar posts and I cannot find this exact error. The site I'm trying to clean up is HTTPS, but I also had the same error with the HTTP site. I am using python 2.6 and mechanize 0.2.4.
Is it because of the proxy or, as the error says, is something on my local machine? I wrote to use the system proxy for mechanization:
br = mechanize.Browser() br.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1')] br.set_proxies({})
Again, all this works on my test machine, but the production machine gives error 10053.
python proxy web-scraping errno mechanize
serk
source share