samuelba / content_select_downloader Goto Github PK
View Code? Open in Web Editor NEWDownload and merge PDFs from content-select.com
License: GNU General Public License v3.0
Download and merge PDFs from content-select.com
License: GNU General Public License v3.0
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.