> I can get the next few trains from a given destination -
> is there any way of getting all the trains from a given station?
Yes, you could do a simnple script in PHP to post data to the following form;
http://www.irishrail.ie/your_journey/timetables_junction1.asp
In this script you will need to pass the following onto their script;
txtFromStation = (The from station)
txtToStation = (The Destination)
txtViaStation = Optional (Via station)
FirstSelectDay = Day of month 0 -31 - my guess you could use % as I
would be surprised if developers are checking for numbers
FirstSelectMonth = Month 01 to 12 as above as well with the %
fromtime = 01
totime = 24 (See a trend happening??)
status = must be A or D
image1 = true
radioservice1 = must be 1
optionWalk = must be yes
optionBus = must be yes
The the results will print our a table that has the following comment;
<!-- BEGINNING OF TABLE 2: SELECTABLE OR HARDCODED INFORMATION -->
Results here, simple to parse out if you have the time and dump into
favourite SQL server, keep going till you find this comment;
<!-- END OF TABLE 1: -->
As we know most web developers don't check too much on option boxes
and the like, and also I have too much time on my hands :) Hence the
check of their form, but the only thing that would nab you here is if
they check the referer.
Hope that helps you, I'd write it but am busy
Cheers
AJ
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!