Secretly passing parameter to function

2012-12-05 Thread Olivier Scalbert
Hi all ! I have a problem that is not easy to explained, so I have tried to reduce it a lot. We are using a framework, that we can not modify. in framework.py: def do(something): ''' Here we are in a framework that can not be modified ... It does a lot of things and finally: '

Re: Question on using urllib

2010-11-11 Thread Olivier Scalbert
On 11/11/2010 06:37 PM, Peter Otten wrote: > The problem is indeed not Python-related. The provider of the images doesn't > like what you're trying to do and verifies the referer, i. e. that the page > you claim to be coming from is acceptable. Here's one way to satisfy that > check: > fr

Question on using urllib

2010-11-11 Thread Olivier Scalbert
Hello all, Sorry if this question is not 100% python related, it is also related to http or html ... Everything takes place in this page: http://www.infometeo.be/klanten/KYC/campage2mega.php With the following program, I can download the 2 small meteo images, without any problem: import urllib