[newbie] Is Python what I'm looking for?
Dave Cook
daverz at mindspring.com
Sat May 25 23:53:15 EDT 2002
On Fri, 24 May 2002 22:05:44 +0000 (UTC), Giulio Cespuglio <giulio.agostini.remove.this at libero.it> wrote:
> My aim is to automatically get specific pieces of information from a
> website, simulating the behaviour of a user filling in HTML forms and
> clicking buttons (a web robot?), then embed them in my HTML page.
> In other words, the pages I need to access are not accessible from a
> standard URL.
> The other part of the problem is of course parsing the resulting HTML
> and extracting the pieces of info I need.
Easy to do with urllib. For example, to send login and password:
import urllib
params = urlencode({'login': 'mylogin',
'password' : 'mypassword'})
input = urlopen("http://foo.baz.com/script.cgi", params)
Dave Cook
More information about the Python-list
mailing list