Git Product home page Git Product logo

pdf_batchdownload's Introduction

PDF_BatchDownload

功能:实现PDF的批量下载 使用步骤:

1. 将PDF的链接放在txt文本中

2. 运行PDF_Downloader的py脚本,将进行PDF文件的下载:

get_raw_url函数:获取txt文本中的内容,返回一个含有pdf链接的url列表

get_File函数:

参数urls:含有pdf链接的url列表

参数progress:实例化的progress,用来记录下载的进度

参数脚本的设定的睡眠时间,谨防被下载过快被断开网络

参数flag记录下载文件的失败个数

参数num_retries对于下载失败的文件会递归调用get_File函数再重试下载

Create_Excel函数:生成一个CSV:包含下载的URL,文件名字和该URL是否下载成功的情况

pdf_batchdownload's People

Contributors

kimliu668 avatar

Watchers

James Cloos 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.