JAVA爬虫学习jsoup

首先添加maven依赖

   org.jsoup
   jsoup
   1.10.3
  

核心代码

Document objectDoc = Jsoup.connect("http://www.xxx.cn/20170725-n3-20170725160315487779.html")
     .cookie("infopass", "waming1234")
     .cookie("EEAkIjcBEarJg", "wmhq2018")
     .cookie("myuniseqid", "e1c26f59cbc13163f15a53d4f3e34351")
     .cookie("PHPSESSID", "d7mjliobrd49s4ncisu4o77gi5")
     .get();


你可能感兴趣的:(JAVAEE)