I am new to scraping and I want to extract allergens from this website: http://www.columbia.edu/~crg2133/diginn/allergens/
I wrote the code that way: allergens = BeautifulSoup(allergens.content) items = allergens.find_all(div) but I get this message: NameError Traceback (most recent call last) in ----> 1 items = allergens.find_all(div)
NameError: name 'div' is not defined
I will be thankful for help.
Aucun commentaire:
Enregistrer un commentaire