Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Automatic Web Form Submission
March 3, 2010, 6:54 am
rate this thread
I am looking for some advice on where to start research for a problem
I have which I would like to solve using perl.
I have to do many travel request searches for flights and would like
to automate it, I'd like to write a script to input to my favorite
travel sites things like:
Departure Point, Destination, Departure Date, Return Date. Submit the
form and parse the results.
I can parse the results with regular expressions no problem, but I am
not sure about entering the form info, submitting and retrieving the
I read a little about WWW::Mechanize, is this the module you experts
would recommend me to use?
Can you recommend any other modules I should also research?
Many thanks in advance, your advice is always much appreciated.
Re: Automatic Web Form Submission
Have you checked that the Terms of Service for each site allows
That is a fragile approach, but is sometimes Good Enough.
perldoc -q form
How do I automate an HTML form submission?
If the FAQ recommends it, then you can assume that experts
recommend it without even asking any experts...
email: perl -le "print scalar reverse qq/moc.liamg0cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
- » FAQ 8.14 How do I modify the shadow password file on a Unix system?
- — Previous thread in » PERL Discussions