![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
文章平均质量分 92
MervynLammm
这个作者很懒,什么都没留下…
展开
-
初学java爬虫,用htmlunit + jsoup解析JavaScript
在用jsoup爬晋江的时候,模拟登陆后仍获取不到v章内容。经验证,是因为jsoup无法解析JavaScript,而v章内容是js动态获取的。经过查阅资料,最后使用htmlunit+jsoup来实现登陆和获取cookies在上一篇已经写了,不再赘述。 public static String getChapterContent(Chapter chapter, String novelUrl) ...原创 2019-03-24 11:21:47 · 1159 阅读 · 1 评论 -
初学java爬虫,用jsoup爬晋江免费章节
小说实体public class Novel { String title; //书名 String author; //作者 List<Chapter> chapters;//章节 String novelId; //小说id String url; //小说url public Novel(String novelId) {//构造函数 this.no...原创 2019-03-24 11:12:15 · 619 阅读 · 0 评论