angonyfox / slideshare-to-pdf

A command line python script to help you back up your SlideShare presentations to PDF. — http://grub.cballenar.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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.

About

A command line python script to help you back up your SlideShare presentations to PDF. — http://grub.cballenar.me/

License:MIT License


Languages

Language:Python 97.8%Language:Shell 2.2%