Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一名新的 Android 程序员,我的问题是:
我想从 HTML 文件中获取一些信息。下载它并以舒适的方式解析它的最佳方式是什么?
谢谢!
您可以使用它jsoup来解析 HTML。在这里你可以找到 jsoup 库和完整的源代码。
jsoup
这是一个例子:http ://desicoding.blogspot.com/2011/03/how-to-parse-html-in-java-jsoup.html
在 Eclipse 中安装: