Giter Site home page Giter Site logo

nju-lib-downloader's Introduction

NJU-lib-pdf-Downloader

用途?不可描述...

使用示例

按书本id下载 ``` //创建Book对象,id=13544100,即《C# Primer Plus 中文版》一书 Book book = new Book("13544100");

//使用5个线程下载,保存到桌面 book.download("C:\Users\Username\Desktop\njulibpdf\", 5);

按分类批量下载

//中图法分类 计算机软件类 Catalog root = new Catalog("0T0P3010");

//获取分类下所有书 List books = root.getAllBooks();

//下载该分类下所有书籍 books.forEach(book -> book.download("C:\Users\padeoe\Desktop\libpdf", 5));


分类浏览

//获取根分类 Catalog root = Catalog.getRootCatalog();

//加载二级分类 root.loadChild();

//输出每个分类id,名字,下属图书数量 root.getChildren().forEach( child -> System.out.println( child.getId() + " " + child.getName() + " " + child.getBooksSize() ) );


错误恢复

new MissingPageCompletion("G:\pageDLFail.txt").complete();//指定了错误日志路径 //或 new MissingPageCompletion().complete();//使用默认的错误日志路径

<h2>特别感谢</h2>
- [@Nifury](https://github.com/Nifury)

nju-lib-downloader's People

Contributors

padeoe avatar

Watchers

James Cloos avatar Qinglong Wang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.