简体   繁体   English

从iPhone应用程序进行网页抓取的最佳方法是什么?

[英]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.

相关问题 将图像从服务器传输到iPhone应用程序的最佳方法是什么? - What is the best way to transfer images from a server to an iPhone app? 保存iPhone应用程序设置的最佳方法是什么? - What is the best way to save iphone app settings? 编写混合iPhone应用程序的最佳方法是什么? - What is the best way to write a hybrid iPhone app? 更新iPhone应用程序数据的最佳方法是什么? - What is the best way to update data for an iPhone app? 在iPhone应用程序中绘制椭圆的最佳方法是什么? - What is the best way to draw this ellipse in an iPhone app? 从服务器端数据库到iPhone进行单向同步的最佳方法是什么? - What's the best way to do one-way synching from a server-side database to iPhone? 在网络上提供也适用于iPhone / iPad的视频的最佳方式是什么? - What is the best way of providing videos on the web that also work on iPhone/iPad? 从iPhone应用程序-> PHP-> MySQL保护用户密码的最佳方法是什么? - What is the best way to go about protecting a user's password going from iPhone app -> PHP -> MySQL? 允许用户从iPhone应用程序的游戏列表中进行选择的最佳方法是什么? - What would be the best way to allow users to select from list of games for an iphone app? 在iphone应用程序中记录调试信息的最佳方法是什么? - What's the best way to log debug info in an iphone app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM