Some help scraping a page in Java

后端 未结 4 925
小鲜肉
小鲜肉 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:27

    Regex is definitely the way to go. Building a DOM is overly complicated and itself requires a lot of text parsing.

提交回复
热议问题