Monday, June 2, 2014

Shoppertom.com - Python Issue

Some of the Shoppertom website is implemented in python. Python is used for some CGI bin and some build process automation.

During the development I have encountered a problem with urllib.urlretrieve call which causes a delay of several seconds when retrieving data from remote urls. This problem was easily fixed by switching the pycurl and following the instructions at http://www.angryobjects.com/2011/10/15/http-with-python-pycurl-by-example/