Some help scraping a page in Java

后端 未结 4 961
小鲜肉
小鲜肉 2021-01-12 15:27

I need to scrape a web page using Java and I\'ve read that regex is a pretty inefficient way of doing it and one should put it into a DOM Document to navigate it.

I\

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 16:13

    You can try jsoup: Java HTML Parser. It is an excellent library with good sample codes.

提交回复
热议问题