-
Notifications
You must be signed in to change notification settings - Fork 85
Description
This was working yesterday...
It would time out after downloading about 100 books but I could rerun it and it would start where it left off. Now I get the following error.
Is it possible the Packt just happened to change their API last night?
I tried using the "--email" option but it makes no difference.
Thank for all of your work in putting this together!
The error:
(base) packtpub-downloader-master>python main.py -e email@domain.com -p XXXXXXX -d ~/Desktop/packt -b pdf,epub,mobi,code
Error login, check user and password
Traceback (most recent call last):
File "main.py", line 226, in
main(sys.argv[1:])
File "main.py", line 195, in main
user = User(email, password)
File "C:\Users\Burke\Documents\Python Scripts\packtpub-downloader-master\user.py", line 24, in init
self.header["Authorization"] = self.get_token()
File "C:\Users\Burke\Documents\Python Scripts\packtpub-downloader-master\user.py", line 39, in get_token
print("Error {}".format(e))
NameError: name 'e' is not defined