Fetch contents(loaded through AJAX call) of a web page

后端 未结 2 1521
-上瘾入骨i
-上瘾入骨i 2020-11-28 13:23

I am a beginner to crawling. I have a requirement to fetch the posts and comments from a link. I want to automate this process. I considered using webcrawler and jsoup for t

2条回答
  •  广开言路
    2020-11-28 13:34

    Jsoup does not handle with Javascript and Ajax, so you need to use Htmlunit or selenium. After loading page using Htmlunit or any you can use jsoup for rest of task.

提交回复
热议问题