Closed armenic closed 3 years ago
@armenic in the book I do not see this CSS selector query table.wikitable > tr:not(:first-child)
.
Anyway it seems to me wrong. Try to use table.wikitable tr:not(:first-child)
. You can test it also via browser
thanks @aborruso, sorry my mistake, it was in the first edition https://www.datascienceatthecommandline.com/1e/chapter-5-scrubbing-data.html#working-with-xmlhtml-and-json I appreciate that there is an issue with selector and please pay attention to the error. Apparently in the scrape Python script the author used decode method on the string which does not exist in Python 3.9.5
Thank you @armenic and @aborruso for your feedback. In the second edition scrape
has been replaced by pup
, so this is no longer an issue.
Dear Author,
Thank you so much for an awesome book! I enjoy every page of it. While doing the examples in ch5, header ch5.4 I encountered the following error and here are the reproducible steps:
docker image:
datasciencetoolbox/dsatcl2e latest ae2a972cf9a6 3 weeks ago 2.67GB
commands submitted:
error: