GithubHelp home page GithubHelp logo

content_select_downloader's People

Contributors

dependabot[bot] avatar samuelba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

content_select_downloader's Issues

SSLError

Hi, thank you very much for this script. Sadly I can't get it to work. This is the error I get every time.

Resulting PDF name: all.pdf
Get PDF id.
PDF id: 56cee377-f8d8-4bf2-95b8-1dd5b0dd2d03
Get chapter ids.
Chapter ids:
Download PDFs.
Download PDF 1 of 1 from: https://content-select.com/media/display/56cee377-f8d8-4bf2-95b8-1dd5b0dd2d03/#pdfjs.action=download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7326 100 7326 0 0 53086 0 --:--:-- --:--:-- --:--:-- 53086
Merge PDFs.
Traceback (most recent call last):
File "./download.py", line 135, in
downloader.run()
File "./download.py", line 129, in run
self.merge_pdfs(files, self.output)
File "./download.py", line 114, in merge_pdfs
merger.append(pdf)
File "/home/name/.local/lib/python3.8/site-packages/PyPDF2/merger.py", line 203, in append
self.merge(len(self.pages), fileobj, bookmark, pages, import_bookmarks)
File "/home/name/.local/lib/python3.8/site-packages/PyPDF2/merger.py", line 133, in merge
pdfr = PdfFileReader(fileobj, strict=self.strict)
File "/home/name/.local/lib/python3.8/site-packages/PyPDF2/pdf.py", line 1084, in init
self.read(stream)
File "/home/name/.local/lib/python3.8/site-packages/PyPDF2/pdf.py", line 1696, in read
raise utils.PdfReadError("EOF marker not found")
PyPDF2.utils.PdfReadError: EOF marker not found

The script will create one file: "tmp_1.pdf". I can't open it.

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.