Skip to content

youmulongjie/jsoup01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jsoup demo

Springboot 版本:2.0.5.RELEASE

以 笔趣阁( https://www.boquge.com/ )为例,下载小说。测试中以“斗破苍穹”为例,30秒内下载完整部小说,并合并成一个 txt 文件,方便直接加入到你的 小说阅读器中。

执行测试

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class Jsoup01ApplicationTests {
    private String bookName = "斗破苍穹";

    @Test
    public void download() {
        long begin = System.currentTimeMillis();
        INet boquge = new Boquge(bookName);

        DownloadMain boqugeMain = new DownloadMain(boquge);
        boqugeMain.download();
        long end = System.currentTimeMillis();

        log.info("耗时:" + (end - begin) / 1000 + "s");
    }

}

Andy.wang

Andy.wang的QQ

About

jsoup爬虫,下载 笔趣阁网站 小说

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages