嗨,我正在开发一个从网站获取数据并将其显示在表格中的应用程序。我已经成功地制作了一个 RSS 提要(制作得像一个推特提要,所以我认为它是一个 xmlparser)但现在我想从一个没有 RSS 提要的网站获取数据..我只是想得到网页上的标题....任何建议如果没有 XMLParser 我该怎么做...
谢谢
嗨,我正在开发一个从网站获取数据并将其显示在表格中的应用程序。我已经成功地制作了一个 RSS 提要(制作得像一个推特提要,所以我认为它是一个 xmlparser)但现在我想从一个没有 RSS 提要的网站获取数据..我只是想得到网页上的标题....任何建议如果没有 XMLParser 我该怎么做...
谢谢
I think that the best way is to create on your server a php/asp/... page that will scrape data from the remote website.
Then, in that page, you can use some CURL to scrape data. See here.
Next, you return the data in the format you want (XML/jSon/etc...).
Finally, you can easily call that script from your code.
On the other hand, pay attention to not scrape anything as skimming is generally illegal and Apple ca reject your app because of that. There is a nice post talking about it.