语言

Menu
Sites
Language
Web Scraping / Getting data from website

Hey,

I am absolutely new to Tizen and I would like to develop an app for the Samsung Gear S2 that gives me the current departure times of the bus and tram at several stations in my town. (So that I don't always have to get my phone from the pocket)

So, is it possible that the app sends an HTTP request to the web server where the departures are displayed and then it "scrapes" the specific data which I need? I would prefer the Web application but a Native application would be okay as well, if that's not possible with HTML5 and JavaScript.

To make this more clear, the departure times in my case are displayed e.g. for a specific station here: old-m.dvb.de/de/abfahrtsmonitor/abfahrten.do?id=33000588
Sorry, it's a German web site but I think you know what I mean. So, I would like to scrape e.g. the next 10 lines, their destinations and the time of arrival.

Any idea how to do that in Tizen or at least in general?

Thank you in advance and best regards.

响应

1 回复
Iqbal Hossain

hi Sachsen

Scraping will be difficult if you want to make it dynamic app. Like if you want to get some input from user and show it to user. 

But if you want to show a static page to the users all time then you can use scrap. Here is a scraping example http://stackoverflow.com/questions/5667880/simple-screen-scraping-using-jquery

For dynamic you have to API provided by others or you have to write API to provide the service to the Gear Application.

I will suggest you to use Dynamic way if possible.