Giter VIP home page Giter VIP logo

slideshare-downloader's People

Contributors

amon-ra avatar kholis avatar limkokhole avatar polatic avatar yodiaditya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

slideshare-downloader's Issues

Use /tmp for storing images

store images in subdirectory in /tmp so that they get flushed on restart.

And also, slideshare2pdf.py would be a better name than convert.py

img2pdf python 3 issue

The current version of img2pdf only works for python 3.
Requirements.txt needed to be amended to "img2pdf==0.1.3"

ValueError: Unable to process empty list

$ pip3 install -r requirements_py3.txt
...
Successfully installed beautifulsoup4-4.10.0 bs4-0.0.1 img2pdf-0.4.3 lxml-4.8.0 pikepdf-5.0.0 soupsieve-2.3.1

$ python3 convertpdf.py https://www.slideshare.net/gskachkov/webassembly-vs-javascript-what-is-faster
yodiaditya/slideshare-downloader/convertpdf.py:22: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 22 of the file yodiaditya/slideshare-downloader/convertpdf.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

  soup = BeautifulSoup(html)
[]
Traceback (most recent call last):
  File "yodiaditya/slideshare-downloader/convertpdf.py", line 75, in <module>
    download_images(url)
  File "yodiaditya/slideshare-downloader/convertpdf.py", line 31, in download_images
    convert_pdf(title)
  File "yodiaditya/slideshare-downloader/convertpdf.py", line 55, in convert_pdf
    pdf_bytes = img2pdf.convert(f, dpi=300, x=None, y=None)
  File "~/.local/lib/python3.9/site-packages/img2pdf.py", line 2223, in convert
    raise ValueError("Unable to process empty list")
ValueError: Unable to process empty list

Failed to run script

Hi, I found these error when trying to execute your script

$ python slideshare2pdf.py https://www.slideshare.net/robertmetzger1/apache-flink-hands-on
Traceback (most recent call last):
  File "/home/opc/slideshare-downloader/slideshare2pdf.py", line 36, in <module>
    driver = webdriver.Chrome("/snap/bin/chromium.chromedriver", options=options)
TypeError: WebDriver.__init__() got multiple values for argument 'options'

Please kindly advise. Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.