joelgrus / data-science-from-scratch

code for Data Science From Scratch book
MIT License
8.63k stars 4.5k forks source link

NLP Error #77

Open Aeromancer opened 5 years ago

Aeromancer commented 5 years ago

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 commented 5 years ago

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')

joelgrus commented 5 years ago

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

smithjackson35 commented 4 years ago

@Aeromancer you are the man!