我怎样才能解析Android的网页内容

问题描述:

我有一个网页,我所知道的(标准外观)的内容 我试图解析网页在我的Andr​​oid设备,这样我可以提取某些信息(例如电话号码)。我有URL。 我怎样才能在Android中实现这一目标?任何建议,我怎么可以启动或这样做的一个简单的例子? 非常感谢你的帮助

I have a webpage that I know the contents of (standard look) I am trying to parse the webpage in my android device so that I can extract certain information (say phone number). I have the URL. How can I achieve this in Android? Any suggestion to how I can start or a quick example of doing so? Thank you so much for the help

尝试 HTMLCleaner 或的 TagSoup ,以了解更多信息请查看下面的例子: http://blog.andrewpearson.org/2010/07/android-html-parsing.html

Try HTMLCleaner or TagSoup, for more information please check this example: http://blog.andrewpearson.org/2010/07/android-html-parsing.html

另外,请查阅这个计算器的问题:What是Android中刮HTML网页上的最快的方法?

Also check out this StackOverflow question: What is the fastest way to scrape HTML webpage in Android?