LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Python program to critisce SWT automatically (https://www.linuxquestions.org/questions/programming-9/python-program-to-critisce-swt-automatically-91566/)

davholla 09-11-2003 04:52 AM

Python program to critisce SWT automatically
 
I am learning Python from http://www.honors.montana.edu/~jjc/e...t/node15.html.
Unfortunately I live in a country with a vandalised public transport system and every day I am delayed by this. I would like to know if it is possible with python to create a program that automatically fills in a form on a web page, so that it automatically chooses today's date and then prints comments like 'late again'.
Can anyone give me any pointers on how to do this ??


Then instead of having to fill in the form every day (which I do not have time to do), I could just run the program.
It is partly an exercise in programming and partly to save time, but mostly because SWT = So where is the train ????.

This is the web page, I would like to fill in every day.
http://www.southwesttrains.co.uk/con...cecomments.asp

Strike 09-11-2003 07:53 AM

Eh, this is kind of a spammy thing to be doing, don't you think? If it's late every day, just note that. Or submit it manually every day and write different things so that it's obvious that you aren't submitting it programmatically.

But, at any rate, there's a 3rd party library for HTML forms out there:
http://wwwsearch.sourceforge.net/ClientForm/

davholla 09-11-2003 09:12 AM

Strike
Thanks for the link.
it is not spam if it is a something that is justified, it is not different than a bank sending letters to people who overdrawn.
I notice that you are from Houston, believe me if you had the transport there that we do here, you would understand why someone feels like that.


All times are GMT -5. The time now is 12:59 AM.