Command-line program to download Scribd documents in pdf format
Project description
Download documents from Scribd in pdf format
Scribd-dl uses selenium and headless Chrome to take high resolutions screenshots of the document pages, and eventually merges them into a pdf file.
Usage
$ scribd-dl (https://www.)scribd.com/(doc|document|presentation)/(document_id)/* [-p PAGES] [-v]
Examples
$ scribd-dl https://www.scribd.com/document/90403141/Social-Media-Strategy $ scribd-dl scribd.com/document/351688288 scribd.com/document/90403141 -p 1-3 $ scribd-dl https://www.scribd.com/document/352366744 --pages 10-16 $ scribd-dl scribd.com/document/351688288 -p 20 --verbose
you can embed scribd-dl, using a context manager like this:
import scribd_dl
options = {
'pages': '1-3,
'log-level': '2' # info
}
with scribd_dl.ScribdDL(options) as session:
session.download([
'https://www.scribd.com/document/352366744/',
'https://www.scribd.com/document/351688288/'
])
use different page ranges in each document:
import scribd_dl
with scribd_dl.ScribdDL() as session:
session.download('https://www.scribd.com/document/352366744/', pages='1-3')
session.download('https://www.scribd.com/document/351688288/', pages='3-5')
for title in session.doc_titles:
print(title)
Installation
Clone it
$ git clone https://github.com/giannisterzopoulos/scribd-dl.git $ cd scribd-dl $ pip install .
or install from PyPI
$ pip install scribd-dl
Requirements
Chromedriver is required in order to work. See all available chromedriver downloads here.
Put the chromedriver executable in the assets folder or in your system PATH variable.
Tested to work with chromedriver v2.37 and Chrome v65.0.
Scribd-dl supports Python 3.4-3.6
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scribd_dl-0.4.5.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for scribd_dl-0.4.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff93b46a13d253ceea57640f3848a342cfd8883f08c6268f10198e41bd05ac65 |
|
MD5 | 08e5fe7d8f6e1a18bd6afc3f9322da0c |
|
BLAKE2b-256 | 1f2c11e06b3c418eb78e638b9d7c99f6678f8ef415bc2d9ddbf783a34cc17c9f |