• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ozzieperez/packtpub-library-downloader: Script to download all your PacktPub ebo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ozzieperez/packtpub-library-downloader

开源软件地址(OpenSource Url):

https://github.com/ozzieperez/packtpub-library-downloader

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

PacktPub Library Downloader

Automatically download all your eBooks and videos. (See: PacktPub Free Daily Book)

Usage:

python downloader.py -e <email> -p <password> [-d <directory> -b <book assets> -v <video assets>]
Example: Download books in PDF and EPUB formats and accompanying source code
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,code
Example: Download videos, their cover image, and accompanying source code
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -v video,cover,code
Example: Download Integrated Courses (Interactive-Ebooks), their cover image, and accompanying source code
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -c course,cover,code
Example: Download everything
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,mobi,cover,code,info -v video,cover,code -c course,cover,code

Commandline Options

  • -e, --email = Your login email
  • -p, --password = Your login password
  • -d, --directory = Directory to download into. Default is "packtpub_media/" in the current directory
  • -v, --videos = Assets to download. Options are: video,cover,code
  • -b, --books = Assets to download. Options are: pdf,mobi,epub,cover,code,info
  • -c, --courses = Assets to download. Options are: course,cover,code

Video Assets

  • video: The video file
  • cover: Cover image
  • code: Accompanying source code

Book Assets

  • pdf: PDF format
  • mobi: MOBI format
  • epub: EPUB format
  • cover: Cover image
  • code: Accompanying source code
  • info: Creates a JSON file with the title, ISBN, # of pages, and description. (note: it slows downloads)

Course Assets

  • course: The interactive ebook (with integrated videos etc.)
  • cover: Cover image
  • code: Accompanying source code

Dependencies:

  • Requests for HTTP requests:

      pip install requests
    
  • lxml for HTML parsing:

      pip install lxml
    

Tested working on Python 2.7.11 and Python 3.6.0 :: Anaconda 4.3.0 (64-bit)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap