如何刮网站,无需API和格式转换成移动应用(iPhone,Android等)? [英] How to scrape website without API and format into a mobile app (iPhone, Android, etc.)?

查看:143
本文介绍了如何刮网站,无需API和格式转换成移动应用(iPhone,Android等)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的是从网站获得的数据和本机的移动应用程序中显示出来,而不是简单地访问它通过移动设备的浏览器,因为该网站是一个微小的移动设备上使用过于繁琐,可能会更好通过本机应用程序访问。然而,该网站不提供一个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.

这篇关于如何刮网站,无需API和格式转换成移动应用(iPhone,Android等)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆