Skip to content
A command line python script to help you back up your SlideShare presentations to PDF. — http://grub.cballenar.me/
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
Vagrantfile
bootstrap.sh Added script and vagrant related files. Apr 26, 2016
grub.py

README.md

SlideShare to PDF

A python script to help you back up your SlideShare presentations to PDF.

Requirements

This script has been tested with Vagrant on an Ubuntu Trusty 64 VM (Vagrantfile included) and requires the following packages:

They can be installed by running:

apt-get update
apt-get install -y imagemagick python-bs4 python-lxml

Usage

Just run it

Simply running the script will prompt you to input the SlideShare URL you'd like to download. By default, this file will be saved in the downloads directory created in the root of the script.

./grub.py
Input the SlideShare URL you want to convert: [SLIDE URL]
Reading SlideShare page...
Downloading slide 1...
Downloading slide 2...
[...]
Converting to PDF...
Your file has been successfully created at downloads/[SLIDE NAME].pdf

Run it with Arguments

./grub.py [-i|--input <url>] [-o|--output <path>] [-j|--jpg] [--use_convert] [-q|--quiet]

Input

Specify the SlideShare URL you'd like to download with -i.

./grub.py -i <SLIDESHARE URL>

Output

You can specify where to save your PDF with -o. The script will accept a directory or a file path. If only the directory path is specified, the name of the slide will be used.

./grub.py -o <FOLDER OR FILE PATH>

# save in directory
./grub.py -i [...] -o /home/user/documents/

# save to file
./grub.py -i [...] -o /home/user/documents/my-slide.pdf

Keep JPGs

You can request to keep the JPG files using -j or --jpg. This will export the PDF file and also a directory with all the JPG files that make up the PDF.

/my-slides-by-author.pdf
/my-slides-by-author/01.jpg
/my-slides-by-author/02.jpg
/my-slides-by-author/03.jpg
...

Force use of convert

The script will automatically detect if the command magick is available and use it by default. If you require the use of convert instead use --use_convert

Quiet

Don't print status messages to stdout.

./grub.py -q

Help

Show help message and exit.

./grub.py -h

Development

This repository includes a Vagrantfile. If you'd like to collaborate, this should help jumpstart the development process.

Contributors

You can’t perform that action at this time.