data-science-from-scratch icon indicating copy to clipboard operation
data-science-from-scratch copied to clipboard

NLP Error

Open Aeromancer opened this issue 5 years ago • 3 comments

The current version of nlp.py breaks on line 32 returning TypeError: 'NoneType' object is not callable.

I'm not sure if this is caused by a change in bs4 or something else.

Aeromancer avatar Sep 18 '19 20:09 Aeromancer

I was able to get some help and the cause was a change to the website, the code should now read

content = soup.find('div', 'post-radar-content')

Aeromancer avatar Sep 20 '19 12:09 Aeromancer

some day I'll learn my lesson about relying on the oreilly website not to change and break things ☹

joelgrus avatar Sep 20 '19 17:09 joelgrus

@Aeromancer you are the man!

smithjackson35 avatar Jan 22 '20 20:01 smithjackson35