This link has been bookmarked by 188 people . It was first bookmarked on 20 Jul 2006, by Jon Phipps.
-
27 Jul 16
Andrei Bursucurllib2 - The Missing Manual https://t.co/emEb2Of2xE
-
13 May 16
-
06 Feb 16
-
10 Oct 13
-
10 Jun 13
-
13 Feb 13
-
06 Dec 12
Stephan Waldtmann"import urllib
import urllib2
url = 'http://www.someserver.com/cgi-bin/register.cgi'
values = {'name' : 'Michael Foord',
'location' : 'Northampton',
'language' : 'Python' }
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read()" -
21 Sep 12
-
15 Sep 12
-
10 Jul 12
-
BadStatusLine exception defined in the httplib module. This exception can be raised when, for example, the requested page is entirely blank
-
-
30 Mar 12
-
29 Feb 12
-
28 Dec 11
-
02 Dec 11
-
30 Nov 11
-
22 Sep 11
-
08 May 11
-
03 May 11
-
28 Mar 11
-
17 Mar 11
-
08 Mar 11
-
14 Feb 11
-
09 Feb 11
-
28 Jan 11
-
03 Jan 11
-
29 Nov 10
-
28 Sep 10
-
05 Aug 10
-
02 Jul 10
-
13 Apr 10
-
08 Apr 10
-
31 Mar 10
-
27 Mar 10
-
04 Mar 10
-
28 Feb 10
-
13 Feb 10
-
03 Feb 10
-
27 Dec 09
-
23 Dec 09
-
07 Oct 09
-
21 Sep 09
-
18 Sep 09
-
17 Aug 09
-
11 Aug 09
-
05 Aug 09
-
07 Jul 09
-
26 Jun 09
-
21 Jun 09
-
03 Jun 09
-
20 May 09
-
17 May 09
fs41 .Examples of usage of urllib and urllib2 Python modules.
-
15 May 09
-
11 May 09
-
23 Apr 09
-
17 Apr 09
-
07 Apr 09
-
16 Mar 09
-
07 Mar 09
-
23 Feb 09
-
19 Feb 09
spassovimport socket
import urllib2
# timeout in seconds
timeout = 10
socket.setdefaulttimeout(timeout)
# this call to urllib2.urlopen now uses the default timeout
# we have set in the socket module
req = urllib2.Request('http://www.voidspace.org.uk')
response -
26 Jan 09
-
05 Jan 09
-
02 Jan 09
Alec Schueler"urllib2 is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function..."
-
01 Jan 09
Chris LasherVery handy if you ever need to do HTTP work.
python for:third for:agbiotec for:behindtherabbit for:gidrew82 for:hokietux for:jemerick for:jewdan for:nuin documentation for:mjroach for:ramblurr reference web programming library for:stuboo for:dansullivanblk http for:harijay
-
15 Dec 08
-
23 Nov 08
-
09 Nov 08
lencielThe Missing Manual
-
07 Nov 08
jezchatfieldPython's URL library is pretty neat. A number of programs that one finds frequently fail to take advantage of all the features. One common problem that I have, working on new sites, is that they often hide behind user authentication. Small tweaks to add u
python urllib httplib manual documentation url http request requests response responses
-
02 Nov 08
-
29 Oct 08
-
10 Oct 08
-
06 Oct 08
-
13 Aug 08
-
06 Aug 08
-
17 Jul 08
-
13 Jul 08
-
16 Jun 08
-
23 May 08
gabriele Domenichiniimport urllib
import urllib2
url = 'http://www.someserver.com/cgi-bin/register.cgi'
values = {'name' : 'Michael Foord',
'location' : 'Northampton',
'language' : 'Python' }
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read() -
19 May 08
-
30 Mar 08
-
28 Mar 08
-
25 Mar 08
-
21 Mar 08
-
24 Jan 08
-
08 Jan 08
Kenneth Priisholmurllib2 is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function. This is capable of fetching URLs using a variety of different protocols.
-
05 Jan 08
-
04 Jan 08
-
30 Dec 07
-
21 Dec 07
-
03 Dec 07
-
28 Nov 07
-
19 Nov 07
-
30 Oct 07
-
22 Oct 07
-
02 Oct 07
-
06 Sep 07
-
24 Aug 07
Kiran Kuppaurllib2 is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function. This is capable of fetching URLs using a variety of different protocols. It also offers a slightly more comp
-
23 Aug 07
-
15 Jul 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.