-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Hi,
the website packtpub.com has been updated, the code in the notebook does not work any more. I found the field for the user name in the code inspector but was not able to find the right element qualifier to address it. The 2nd example with the pybites banner generator did of course not work either because Bob did not reveal his password. Can't you find (or create) a website that is not changed frequently and easily accessible for everyone?
Cheers,
Andreas
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
tazV2 commentedon May 15, 2020
man! @aojanzen isnt kidding!
I tried 100 days of python years ago but did not expect packt changed that much!
hello @aojanzen ,
you have to try xpath to find right elements. i spent/straggled sometime to make it work.
Did you see in sign in page 'https://account.packtpub.com/login?returnUrl=referrer', there will be a notification popup? you have to click that.
Here is the code for the packt part:
@bbelderbos and @hobojoe1848, please update the course soon as possible
bbelderbos commentedon May 15, 2020
Thanks @tazV2 @aojanzen, I will look at this today.
bbelderbos commentedon May 15, 2020
Sigh, not only did the design change, you cannot download books anymore, and I needed a bunch of sleeps to actually get the content to load. This works for me (loading in my Packt credentials from my environment):
Output (pagination so only first 10 results, no download links to go after):
So:
I think we add a disclaimer to the README or starting video that Packt's website changed so the code won't work anymore.
Maybe we can add another scraper to this repo, using something we host ourselves? In that case what would be cool?
cc @mikeckennedy @hobojoe1848 - what do you guys think?
aojanzen commentedon May 16, 2020
Thank you, guys! I really appreciate the quick replies.