[Tutor] Tutor Digest, Vol 25, Issue 47
David Holland
davholla2002 at yahoo.co.uk
Sun Mar 19 19:36:05 CET 2006
Message: 8
Date: Sat, 18 Mar 2006 14:26:15 -0500
From: Kent Johnson
Subject: Re: [Tutor] Fill in a web form
Cc: tutor python
Message-ID: <441C5ED7.1020203 at tds.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
David Holland wrote:
> Is there a way in python to automatically put values in a web page ?
> For example I used to travel on a train (I live in the UK) that is
> always late. Is there a way to automatically to do this ?
Can you be more specific? Do you want to script the browser so it
displays a page (try PAMIE for IE or PyXPCOM for Mozilla) or do you want
to write a program that fetches the data and displays it (urllib2 or
mechanize/ClientForm to fetch the data, BeautifulSoup to parse the
response and get what you want).
Google any of the above for details or ask again here.
Kent
Kent, Michael and Allan,
Thank you for the advice. Perhaps I did not explain it very well.
What I meant was with python it is possible to create a program that creates a .txt file with various values automically. Is it possible to send values to a web site automatically.
(Eg if every day your train is late how would you create a program to complain for you on this page http://www.southwesttrains.co.uk/SWTrains/Customerservice/_Contact+form.htm).
I think what Michael suggested is correct. I will have a look when I am better (I am suffering from the flu).
Thanks again everyone.
------------------------------------------------------------------------------------------------------------------------------------
First they came for the Danes, but I did not speak out because I am not a Dane.
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060319/1257a125/attachment.htm
More information about the Tutor
mailing list