-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added json support, exampleconf.json, support to convert image-respon…
…se to pdf and then merge
- Loading branch information
Showing
3 changed files
with
123 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# prenly-dl | ||
|
||
Utility to download pdfs from prenlys online viewer. | ||
Utility to download pdfs from prenlys online viewer. | ||
|
||
## Requirements | ||
* PyPDF2 | ||
* Pillow | ||
* img2pdf | ||
* requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"credentials": | ||
{ | ||
"textalk-auth": "YOUR OWN", #Look in api/v2/ request header (X-Textalk-Content-Client-Authorize), seems to be persistent | ||
"auth": "YOUR OWN", #Look in Storage/Local Storage/prenlyreadersessiontoken or headers of request to api/v2/, remove "Bearer ", seems to be persistent | ||
"h": "YOUR OWN" #Look in url of pdf-request to api/v2/, seems to be persistent | ||
}, | ||
"issue": | ||
{ | ||
"title": 4019, # ID of a paper | ||
"uids": [ #UIDs of issues to download from paper, look in request to /api/v2 for issue_uid | ||
"517313", | ||
"490377" | ||
], | ||
"site": "", # URL of reader webpage | ||
"cdn": "" # Some sites may use other CDN than https://mediacdn.prenly.com, look in dev tools network for webp/pdf requests to a CDN | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters