REMitchell / python-scraping

Code samples from the book Web Scraping with Python http://shop.oreilly.com/product/0636920034391.do
4.42k stars 2.48k forks source link

findAll vs find_all #63

Open wickedjargon opened 6 years ago

wickedjargon commented 6 years ago

the text uses find_all

Using this BeautifulSoup object, you can use the find_all function...

where as the example uses findAll instead:

 = bs.findAll('span', {'class':'green'})
for name in nameList:
    print(name.get_text())

which doesn't make a difference when the code is run, but the code example and text should remain consistent with one-another