Re: urllib accept-language doesn't have any effect

2008-10-17 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Martin Bachwerk wrote: > It does indeed give me a swedish version.. of www.google.de :) That's the > beauty about Google that they have all languages for all domains > available. > > However if I try it with www.gizmodo.com (a tech blog in several > languages) I s

Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Martin Bachwerk
Hey Philip, thanks for the snipplet, but I have tried that code already. It does indeed give me a swedish version.. of www.google.de :) That's the beauty about Google that they have all languages for all domains available. However if I try it with www.gizmodo.com (a tech blog in several lang

Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Philip Semanchuk
On Oct 16, 2008, at 6:50 AM, Martin Bachwerk wrote: Hmm, thanks for the ideas, I've checked the requests in Firefox one more time after deleting all the cookies and both google.com and gizmodo.com do indeed forward me to the German site without caring about the browser settings. wget s

Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Diez B. Roggisch
Martin Bachwerk wrote: > Hmm, thanks for the ideas, > > I've checked the requests in Firefox one more time after deleting all > the cookies and both google.com and gizmodo.com do indeed forward me to > the German site without caring about the browser settings. > > wget shows me that the server d

Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Martin Bachwerk
Hmm, thanks for the ideas, I've checked the requests in Firefox one more time after deleting all the cookies and both google.com and gizmodo.com do indeed forward me to the German site without caring about the browser settings. wget shows me that the server does a 302 redirect straight away..

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Philip Semanchuk
On Oct 15, 2008, at 9:50 AM, Martin Bachwerk wrote: Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I w

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Diez B. Roggisch
Martin Bachwerk wrote: > Hi, > > yes, well my browser settings are set to display sites in following > languages "en-gb" then "en". > > As a matter of fact, Google does indeed show me the German site first, > before I click on "go to google.com" and it probably stores a cookie to > remember that

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
Hi, yes, well my browser settings are set to display sites in following languages "en-gb" then "en". As a matter of fact, Google does indeed show me the German site first, before I click on "go to google.com" and it probably stores a cookie to remember that. But a site like gizmodo.com for

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Diez B. Roggisch
Martin Bachwerk wrote: > Hello, > > I'm trying to load a couple of pages using the urllib2 module. The > problem is that I live in Germany and some sites seem to look at the IP > of the client and forward him to a localized page.. Here's an example of > the code, how I want to access google.com m

urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I want to access google.com main english page, but get Germa