This commit is contained in:
bipinkrish 2023-02-26 22:21:56 +05:30
parent 1b3b4681bf
commit 1755c2ad19
3 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# DeGourou (DeDRM + libgourou)
#### Automate the process of getting decrypted ebook 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/).
_Automate the process of getting decrypted ebook 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/)._
---

View file

@ -1,4 +1,5 @@
pycryptodomex==3.17
oscrypto==1.3.0
lxml==4.9.2
requests
requests
charset-normalizer

View file

@ -1,5 +1,6 @@
from charset_normalizer import md__mypyc
from os import path, mkdir
import requests
from requests import Session
import random
import string
import pickle
@ -27,7 +28,7 @@ def format_data(content_type, fields):
return data
def login(email, password):
session = requests.Session()
session = Session()
session.get("https://archive.org/account/login")
content_type = "----WebKitFormBoundary"+"".join(random.sample(string.ascii_letters + string.digits, 16))