From 1755c2ad19aa95cb022fc9656e79d48a45e6f83b Mon Sep 17 00:00:00 2001 From: bipinkrish Date: Sun, 26 Feb 2023 22:21:56 +0530 Subject: [PATCH] Bug Fix --- README.md | 2 +- requirements.txt | 3 ++- setup/ia.py | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3861f1d..64470d6 100644 --- a/README.md +++ b/README.md @@ -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/)._ --- diff --git a/requirements.txt b/requirements.txt index 58cb74e..51ade2c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ pycryptodomex==3.17 oscrypto==1.3.0 lxml==4.9.2 -requests \ No newline at end of file +requests +charset-normalizer \ No newline at end of file diff --git a/setup/ia.py b/setup/ia.py index e6dc729..d07caef 100644 --- a/setup/ia.py +++ b/setup/ia.py @@ -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))