ozzieperez / packtpub-library-downloader

Script to download all your PacktPub ebooks and videos
218 stars 62 forks source link

Cannot login on Windows 10 + Python 2.7.11 #38

Open KillerBabouin opened 5 years ago

KillerBabouin commented 5 years ago

Hello Guys,

I tested to download my ebooks PacktPub on my Windows laptop using python 2.7.11 but it doesn't work. Indeed, the message I got is the following and still the same "Logged in successfully!" even with wrong credentials... if anybody can help it could be great. I already tested with " or ' or nothing for my email and my password.

thanks a lot.

c:\Python27>python.exe downloader.py -e 'myemail@gmail.com' -p 'mypassord' -d E:\Downloads\eBooks\PacktPub -b pdf,epub,mobi,cover,code,info -v video,cover,code -c course,cover,code Attempting to login... Logged in successfully! ########################################################################### FOUND 0 BOOKS: STARTING DOWNLOADS ########################################################################### ########################################################################### FOUND 0 VIDEOS: STARTING DOWNLOADS ########################################################################### ########################################################################### FOUND 0 INTEGRATED COURSES: STARTING DOWNLOADS ###########################################################################

KarlCookson commented 5 years ago

I don't think the problem is with your usage. I ran into this over the new year break, and having investigated it I believe it's because Packtpub have changed the structure of their website. Unfortunately my programming skills aren't up to the task of resolving the problem, although I might keep trying.

Perhaps the lack of anyone else posting about the issue suggests that this tool isn't being used much now, shame.

artwod commented 5 years ago

Hi, I've found the issue about one month ago. Now URLs to purchased resources aren't embedded into main web page but are generated dynamically by JS. I've tried to find how to get access to such links but it doesn't seem easy (I'm not expert in web development). I hope one will find solution soon.

KillerBabouin commented 5 years ago

... So nobody could help? :-)

lmbringas commented 5 years ago

hi, i have the solution but i dunno if it's legal or not. so i dunno if i can upload the code

KillerBabouin commented 5 years ago

Hi, You are the boss! Why you think it could be not legally compliant? I will not use named account?

markjx commented 5 years ago

I'll add that I'm having this issue as well. If I use the correct password or incorrect one, I get the "Logged in successfully!" message and Found 0 Books, Videos, & Integrated courses.

I'm on Python 2.7.15 on Fedora 28.

KillerBabouin commented 5 years ago

Hi everybody, Do you have an idea to improve the script please?

@Imbringas Could you kindly share what you find please or explain why there is a legal issue?

lmbringas commented 5 years ago

Hi, I'm not at home until Friday. When I come back I'll share my script. Sorry for not responding, I'm not with my computer

lmbringas commented 5 years ago

hi https://github.com/lmbringas/packtpub-downloader is to simple but it works for books