- Home /
How To Download A Webpage?
I want to download http://www.yvr.ca/en/flight-information/departing.aspx and take the Time, Airline, Flight#, Destination, Status, and Gate fields using WWW and display them in the console in a nice looking format. How can I do this?
Could be hard, flight information is usually made fairly hard to get at as it usually has a cost implication.
That web page uses Javascript rather than aspx to build tables.
I don't know how to manipulate the page so as the get the data from it once it is downloaded.
How would I break the data I want up and sort it into arrays?
Does anyone know how to download the data and display it in the console??
You would probably be better off finding a supported web service API for flight information, perhaps something like http://www.flightexplorer.com/products/webservice/webservice.aspx
Answer by lancer · Aug 21, 2013 at 06:22 PM
I found what site the java scripts where getting and now have it working right, thanks all.
Agree with whydoidoit. Had a friend who did something similar.. (made a phone App that got all info from a third party site) Eventually he was contacted by the site and asked to change the App (to make sure that everyone knows where the info is co$$anonymous$$g from) or remove it from the App store.
@yoyo made a very good suggestion that would solve the legality issue XD
Answer by Bunny83 · Aug 21, 2013 at 04:28 AM
What you might want to use is the htmlagilitypack. However, parsing a third party site is always risky since it's layout could be changed at any time. Also you should check if it's legal to use this information in third party tools. In most cases it's not. If it's just for a private project that shouldn't be a problem.
Agreed +1.
As I mentioned there is no data being sent to the HT$$anonymous$$L on that site, you'd need a Javascript engine to execute the script to download and create the tables which end up as a part of the DO$$anonymous$$.
Your answer
Follow this Question
Related Questions
Remove .dll 1 Answer
WWWForm.Addfield not able to post data to server 1 Answer
www.text + php + c# issue 2 Answers
Download a WWW int? Or convert? 1 Answer
How to yiled a try/catch block? 2 Answers