Answers for "beautifulsoup find_all by id"

0

beautifulsoup find_all by id

from BeautifulSoup import BeautifulSoup 
f = open('/Users/myUserName/Desktop/contacts.html')
soup = BeautifulSoup(f) 
list = soup.findAll('div', attrs={'class':'fcontent'})
print len(list)
Posted by: Guest on June-10-2021

Browse Popular Code Answers by Language