From 95acbcedc481dca2597a58d54910814c0300b3cd Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 20 Sep 2015 23:16:45 +0500 Subject: use a more modern UA (#25145) --- Doc/howto/urllib2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index 01ae513..a824032 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -174,7 +174,7 @@ Explorer [#]_. :: import urllib.request url = 'http://www.someserver.com/cgi-bin/register.cgi' - user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' + user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)' values = {'name' : 'Michael Foord', 'location' : 'Northampton', 'language' : 'Python' } -- cgit v0.12 From 16ad5cfad391a8e7c124ccaa984a56ad123d0ab2 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 20 Sep 2015 23:17:41 +0500 Subject: remove reference to PyGoogle (#25145) Patch by Bar Harel. --- Doc/howto/urllib2.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index a824032..e3d7714 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -572,8 +572,7 @@ Footnotes This document was reviewed and revised by John Lee. -.. [#] Like Google for example. The *proper* way to use google from a program - is to use `PyGoogle `_ of course. +.. [#] Google for example. .. [#] Browser sniffing is a very bad practise for website design - building sites using web standards is much more sensible. Unfortunately a lot of sites still send different versions to different browsers. -- cgit v0.12