Kent, Michael and Allan,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: <[EMAIL PROTECTED]>
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
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 vari! ous 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
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
