Helper python/shell scripts to download slides from slideshare
This repository contains python/shell helper scripts to download slides from slideshare as webp images and save it as a pptx file. Also, there is a streamlit application for the same.
- 
Download a latest version of
python >= 3.10 - 
Install all requirements from requirements.txt file
 
> python3 -m pip install -r requirements.txtThis is a python script that downloads the slides from slideshare url as .webp files
> python3 download_slides_as_images.py --help
usage: Helper script to download slide images from scribd [-h] --url URL --out OUT [--max-workers MAX_WORKERS]
options:
  -h, --help            show this help message and exit
  --url URL             Scribd slides preview url (e.g.- https://www.slideshare.net/JavedSheikh20/rch-programme-236992429#1)
  --out OUT             Path of the folder where to store the downloaded slides as .webp images
  --max-workers MAX_WORKERS
                        Max. no of workers to use for multithreadingThis is a python script that can converts a list of images to a ppt file
> python3 images_to_pptx.py --help
usage: images_to_pptx.py [-h] --out OUT --image-paths IMAGE_PATHS [IMAGE_PATHS ...]
options:
  -h, --help            show this help message and exit
  --out OUT             Path of the pptx output
  --image-paths IMAGE_PATHS [IMAGE_PATHS ...]
                        List of image pathsThis is a helper shell script that uses above two scripts to download the slides from given url and convert that to .ppt file
> sh download_slides_as_pptx.sh help
Usage: download_slides_as_pptx.sh <url> <out> [scale: (default 0.5)] [workers: (default 4 )]Licensed under @MIT