如何刮网站,无需API和格式转换成移动应用(iPhone,Android等)?转换成、格式、网站、Android

由网友(何必、委屈求全)分享简介:我感兴趣的是从网站获得的数据和本机的移动应用程序中显示出来,而不是简单地访问它通过移动设备的浏览器,因为该网站是一个微小的移动设备上使用过于繁琐,可能会更好通过本机应用程序访问。然而,该网站不提供一个API来访问其功能。是网络刮做到这一点的最好方法是什么?如果是这样,有什么来实现这一目标的最佳途径?是否有任何可用的工具...

我感兴趣的是从网站获得的数据和本机的移动应用程序中显示出来,而不是简单地访问它通过移动设备的浏览器,因为该网站是一个微小的移动设备上使用过于繁琐,可能会更好通过本机应用程序访问。然而,该网站不提供一个API来访问其功能。是网络刮做到这一点的最好方法是什么?如果是这样,有什么来实现这一目标的最佳途径?是否有任何可用的工具,使这个过程更容易?

I am interested in obtaining data from a website and displaying it within a "native" mobile application instead of simply accessing it through the mobile device's browser, as the website is too cumbersome for use on a tiny mobile device and could be better accessed through a native application. However, that website doesn't offer an API to access its functionality. Is web scraping the best way to do this? If so, what's the best way to accomplish that? Are there any tools available to make this process easier?

推荐答案

是的,刮去数据到一个易于使用的格式,如CSV或JSON,然后再用在你的应用程序。看看 LXML 或的这个webscraping库。

Yes, scrape the data into an easy to use format such as CSV or JSON, then reuse that in your application. Have a look at lxml or this webscraping library.

阅读全文

相关推荐

最新文章