简体   繁体   中英

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? 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
  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

In general you should take a look into the Jsoup Codebook .

Do you need to login or is it possible to visit the forum as guest?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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