Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
osx "fixup"
Browse files Browse the repository at this point in the history
  • Loading branch information
sh4tteredd committed Oct 25, 2022
1 parent 598db8f commit 55c3447
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Empty file added cookies.txt
Empty file.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys
import requests
import base64
from xml.dom.minidom import parseString
from io import BytesIO, SEEK_SET, SEEK_END
import PyPDF2
Expand Down Expand Up @@ -53,7 +52,12 @@ def seek(self, position, whence = SEEK_SET):
self._bytes.seek(position, whence)


cookie = input("Paste the cookies: ").encode('latin-1', 'replace')
if sys.platform == 'darwin': #macos """fixup"""
input("Paste the cookie in the cookies.txt and then press enter")
cookie = open("cookies.txt", "rb").read()
else:
cookie = input("Paste the cookies: ").encode('latin-1', 'replace')


isbn = input("Input the ISBN of the book you want to download: ")

Expand Down

0 comments on commit 55c3447

Please sign in to comment.