[英]What is the best way to do web scraping from an iPhone App?
I am writing an iphone app and I need to scrape about 50+ websites for data. 我正在写一个iPhone应用程序,我需要搜索大约50多个网站的数据。
Does anyone know of any good client-side solutions that I can use ? 有谁知道我可以使用任何好的客户端解决方案? I dont want to build a backend just for this.
我不想为此建立一个后端。
Any pointers ? 有什么指针吗?
Thanks Rohan 谢谢罗汉
Looks like your primary focus is the mobile application, and you want to offload the scraping activity to an outside service. 您的主要关注点似乎是移动应用程序,并且您希望将抓取活动卸载到外部服务。
Use a service such as Bobik ( http://usebobik.com ) that provides APIs for scraping data off websites. 使用诸如Bobik( http://usebobik.com )之类的服务,该服务提供用于从网站上抓取数据的API。 You can even test your queries for free!
您甚至可以免费测试您的查询!
The API is fairly extensive, have a look at http://usebobik.com/api/docs for more information. API相当广泛,请查看http://usebobik.com/api/docs以获取更多信息。 There's even a SDK available!
甚至还有SDK可用!
I think it is natural to build a small backend web app that takes a query from your phone and does the scraping. 我认为构建一个小型后端Web应用程序是很自然的,它可以从您的手机中获取查询并进行抓取。 It's extremely easy, is not it?
它非常简单,不是吗? Scraping can be done via curl or something.
刮痧可以通过卷曲或其他方式完成。 A web server these days is about 15 lines of code from the scratch.
如今,Web服务器大约有15行代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.