this post was submitted on 26 Nov 2024
40 points (97.6% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54837 readers
401 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 2 years ago
MODERATORS
 

I've got legal, authorized access to cengage's ebook platform. HOWEVER: their built-in ereader is absolute CRUD. Does anyone have a tool that can create an epub or pdf from a given cengage book?

I've already checked libgen, anna, ebsco, and the online databases. the book isnt already on there, so once I rip it, it'll get uploaded by me.

you are viewing a single comment's thread
view the rest of the comments
[–] grillgamesh@toast.ooo 8 points 1 week ago* (last edited 1 week ago) (1 children)

I've actually started writing a script... but it's currently erroring out when trying to save the content, because selenium is stupid.

if you want to help out, here's the git: https://github.com/grillgamesh/CENGAGE_RIPPER/tree/main

[–] grillgamesh@lemmy.dbzer0.com 9 points 1 week ago (1 children)

I CANT FUCKING GET THIS FILE STUFF TO WORK

IT FINDS THE ELEMENTS JUST FINE

BUT CANT FUCKING SAVE IT

(also hi from migrated account, i'm on dbzer0 now \o/)

[–] grillgamesh@lemmy.dbzer0.com 3 points 1 week ago* (last edited 1 week ago) (2 children)

https://library.bz/main/uploads/272C3A69705B306903AB3371B67E38DA

i did it by hand. god i fucking hate cengage. I'm washing my hands of this bullshit. if someone else wants to take over the github project, feel free. I'm fucking done. I'm off to get drunk and sleep.

[–] borari@lemmy.dbzer0.com 4 points 1 week ago* (last edited 1 week ago) (1 children)

I don’t have a cengage account, so I can’t actually do do anything with the Python and test it, and I’m obviously unaware of the http responses you get from the site or how any of it works.

Two things jumped out at me while glancing through the script though. First, you close the login tab, then when you try to parse the html content from the ebook tab you reference tab [1]. I usually use the requests library bc I’m posting payloads and stuff so I rarely use selenium, and I’ve never fucked with tabs, but with the first tab closed won’t the ebook tab be first in the index, so [0]? Second, look up how to set a proxy for selenium, download the community edition of burp suite, then proxy all your traffic in the script through burp. You’ll then be able to see all your http requests and all the http responses from the server, which will probably help you debug much more effectively.

Edit - if you even care anymore haha.

[–] grillgamesh@lemmy.dbzer0.com 1 points 5 days ago

You're welcome to do a PR for the project, I'll glady merge it, and test it using my account.

I'm personally not going to do any more work on this though. https://github.com/grillgamesh/CENGAGE_RIPPER

[–] grillgamesh@lemmy.dbzer0.com 4 points 1 week ago

A story of commits.

good fucking riddance. I'm done.