VERY basic browser question
Cameron Laird
claird at lairds.com
Fri Feb 21 08:50:33 EST 2003
In article <yDb5a.47$pS1.25 at tornadotest1.news.pas.earthlink.net>,
Tyler Eaves <tyler at cg1.org> wrote:
>Grant Ward Able unleashed the following on comp.lang.python:
>>
>>
>> Hi there - can someone show me how to open a browser, click a button, enter
>> data and then read text from the displayed webpage ?
>> VERY, very new to Python........
>>
>> TIA - Grant
>>
>>
>
>Do you *really* need to open a browser, or do you actually want to get the
>data from the webpage?
>
>If the former, see the other reply, if the latter, something like this
>should do the trick:
>
>import urllib
>
>urlobj =
>urllib.urlopen('http://example.com/something.cgi?var1=value1&var2=value2')
>
>html = urlobj.read()
.
.
.
Does the just-published <URL: http://
www.unixreview.com/documents/s=7822/ur0302h/ >
help?
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
More information about the Python-list
mailing list