Add files via upload

main
Bipin 2023-02-23 12:38:10 +05:30 committed by GitHub
parent fc80e8972b
commit cf0859565d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 0 deletions

39
README.md 100644
View File

@ -0,0 +1,39 @@
# DeGourou (DeDRM + libgourou)
### Automate the process of getting decrypted book from [InternetArchive](https://archive.org/) without the need for [Adobe Digital Editions](https://www.adobe.com/in/solutions/ebook/digital-editions/download.html) and [Calibre](https://calibre-ebook.com/) with DeDRM Plugins.
---
## Things you need
1. Adobe Account (dummy account recommended)
2. Internet Archive Account
3. ACSM file from the book page you borrowded from Internet Archive
4. Python v3.x.x Installed with pip
---
## Guide
1. Clone the repositary or Downlaod zip file and extract it
2. Install requirements using pip
3. Run "main" file
```
git clone https://github.com/bipinkrish/DeGourou.git
cd DeGourou
pip install -r requirements.txt
python main.py
```
---
## Credits
This project is highly inspired from these projects, thanks to them
1. [DeDrm](https://github.com/apprenticeharper/DeDRM_tools) tools for ebooks
2. [Standalone Version of DeDrm Tools](https://github.com/noDRM/DeDRM_tools)
3. [libgourou](https://indefero.soutade.fr//p/libgourou/) is a free implementation of Adobe's ADEPT protocol]
4. [ACSM Input plugin + standalone](https://github.com/Leseratte10/acsm-calibre-plugin)

36
main.py 100644
View File

@ -0,0 +1,36 @@
from setup.login_account import loginAndGetKey
from setup.fulfill import downloadFile
from decrypt.decodePDF import decryptPDF
from decrypt.decodeEPUB import decryptEPUB
# setting up the account and keys
loginAndGetKey()
# acsm file
acsmFile = input("Enter ACSM file (press enter if the file name is URLLink.acsm): ")
if acsmFile == "":
from os.path import exists
if exists("URLLink.acsm"):
acsmFile = "URLLink.acsm"
else:
print("URLLink.acsm file does not exists")
print()
exit(1)
# downlaod
enrcyptedFile = downloadFile(acsmFile)
print(enrcyptedFile)
print()
# decrypt
if enrcyptedFile.endswith(".pdf"):
decryptedFile = decryptPDF(enrcyptedFile)
elif enrcyptedFile.endswith(".epub"):
decryptedFile = decryptEPUB(enrcyptedFile)
else:
print("Not in supported file formats")
print()
exit(1)
print(decryptedFile)
print()

2
requirements.txt 100644
View File

@ -0,0 +1,2 @@
pycryptodomex
oscrypto