
January 9th, 2003, 12:10 AM
|
|
Registered User
|
|
Join Date: Dec 2002
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
You can use the urllib module to retrieve text from a web page.
The urlopen function returns the HTML code of the specified web page.
Example take from the Python manual:
Quote: import urllib
params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query", params)
print f.read() |
|