GithubHelp home page GithubHelp logo

adrianlois / redshelf-bypass-drm-pdfdownload Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 97 KB

RedShelf Virdocs - Bypass DRM protection PDF Download. Download ePub/eReader documents to PDF when downloading and printing is not allowed.

License: GNU General Public License v3.0

Python 100.00%
bypass bypass-drm drm drm-protection ebook epub ereader pdf pdf-download redshelf virdocs

redshelf-bypass-drm-pdfdownload's People

Contributors

adrianlois avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jaser jueybean

redshelf-bypass-drm-pdfdownload's Issues

Keeps downloading first page over and over

It’s possible I’ve made a mistake, since I’m new to Python (and programming in general), but when I run the file in Terminal it just repeatedly downloads the first page while changing the filename. I’ve attached screenshots of the download folder for reference.
download folder screenshot #1
download folder screenshot #2
download folder screenshot #3
I can share the modified Python and JSON files if that helps. I can also screenshot my Terminal window and share that too. Just let me know.

A bit of helpful advice to people trying to get the IDs

Just wanted to give a bit of helpful advice to people
I use FireFox, so it likely won't be different for Chrome.

Variables
base_url = "https://platform.virdocs.com/rscontent/epub/XXXXXXX/XXXXXXX/OEBPS/images/page-{}.jpg"

To find the base URL in inspect element, search for

../images/page-1.jpg

This will show up as a link, so right-click it click on "Open Link In New Tab" then look at the URL. It should look something like the URL below.

https://platform.virdocs.com/private/manifest_item/XXXXXXX/XXXXXXX/YYYYYYYYYYYYYYYYY.jpg?AWSAccessKeyId=YYYYYYYYYYYYYY&Signature=YYYYYYYY&Expires=YYYYYYYYYY

The spot where I marked it as XXXXXXX will be the two variables that you need.

Cookies
So, for the session_ID and csrftoken. For the session_ID, there's only one, don't confuse it with "sessionid". On my end I get multiple IDs for the csrftoken, just be sure you get the long csrftoken, it will be basically the same length of the session_ID.

Hope that helps someone else out.

Downloads 0 bytes

Sometimes when downloading a page, it fails and leaves a 0 byte file. Probably best to check the file size after downloading to make sure it's > than 0 bytes, and redownload it if it isn't.

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.