Chip Chanko
Joined: October 16, 2001 at 05:01 AM UTC
Posts: 742
Question for programmers
April 09, 2008 at 03:31 AM UTC
#
Can anyone tell me how the
metro next train page works? Is it pulling XML from a source? I can't figure it out looking at the page source but want to write a
chumby widget for it.
Please move on if this is nerding you out.
sweetcell
Joined: July 18, 2006 at 05:01 AM UTC
Posts: 22608
Re: Question for programmers
April 09, 2008 at 03:59 AM UTC
#
is it just me, or is it smelling geeky in here?
the key is the string "
http://www.wmata.com:80/metrorail/Stations/showpid/showpid_refresh.cfm?station=31"
.cfm = the pages are being served up by
coldfusion, and thus the data source is probably inaccessible unless they were really lax about implementing security.
since accessing the data directly will likely be impossible (and could potentially land you in hot water), you might consider simple text scraping instead.
vansmack
Joined: October 04, 2001 at 05:01 AM UTC
Posts: 19725
Re: Question for programmers
April 09, 2008 at 04:05 AM UTC
#
sweetcell
Joined: July 18, 2006 at 05:01 AM UTC
Posts: 22608
Re: Question for programmers
April 09, 2008 at 04:24 AM UTC
#
ah yes, obviously if the designer/admin gives you access to the data then you're off to the races.
RatBastard
Joined: January 07, 2003 at 06:01 AM UTC
Posts: 2955
Re: Question for programmers
April 09, 2008 at 07:19 AM UTC
#
You cant tell the underlying dynamic feed (USUALLY) from teh code generated by it. Thats part of teh beauty of dynamic content. For example you can use PHP to create dynamic content and theer is no way that the user will know. Dont even have to directly use a .php file to do it. You can use an include directive in an .html (.shtml, etc) page to load external php code. I have not looked at the page in question so perhaps theer is enough indication there to deduce the data used to dirve the content but do not be surprised if it cant be done with 100% certainty.
Relaxer
Joined: October 15, 2001 at 05:01 AM UTC
Posts: 5410
Re: Question for programmers
April 09, 2008 at 01:15 PM UTC
#
Don't forget to prepare that Fetzer valve with some 3-in-1 oil and some gauze pads. And I'm gonna need about ten quarts of anti-freeze, preferably Prestone. No, no make that Quaker State.
It's all ball bearings nowadays.
Chip Chanko
Joined: October 16, 2001 at 05:01 AM UTC
Posts: 742
Re: Question for programmers
April 09, 2008 at 01:18 PM UTC
#
Wow. I was expecting either no replies and/or tomato throwing. Thanks guys. The easiest thing for me to do would probably be to figure out pulling the text from their popup.
I may also just write to them (hopefully can figure out the right person to talk to) and convince them to make a simple widget. Since they've also made this info accessible for phones on their mobile site they probably want people to have as many ways to access it as possible.
thirsty moore
Joined: January 11, 2000 at 06:01 AM UTC
Posts: 6131
Re: Question for programmers
April 09, 2008 at 01:47 PM UTC
#
U R 1337 hAxx0r.
Originally posted by Chip Chanko:
Wow. I was expecting either no replies and/or tomato throwing.