简体   繁体   English

从论坛中提取用户视图

[英]Extract user view from a forum

I want to extract a user post from a forum thread.Only the user text. 我想从论坛主题中提取用户帖子。 how to extract from a html page using Jsoup or boilerplate? 如何使用Jsoup或样板从html页面提取? Please give me a solution. 请给我一个解决方案。

Give me a solution 给我一个解决方案

  1. Connect to website with jsoup like posted here: http://jsoup.org/cookbook/input/load-document-from-url 使用jsoup连接到网站,如下所示: http : //jsoup.org/cookbook/input/load-document-from-url
  2. Use a selector to for getting the post you need. 使用选择器获取您需要的帖子。 Examples and a list of all possible selectors are available here: http://jsoup.org/cookbook/extracting-data/selector-syntax 示例和所有可能选择器的列表在此处提供: http : //jsoup.org/cookbook/extracting-data/selector-syntax

In general you should take a look into the Jsoup Codebook . 通常,您应该看一下Jsoup Codebook

Do you need to login or is it possible to visit the forum as guest? 您需要登录还是可以访客身份访问论坛?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM