python - Beautiful Soup Not Finding HTML Element -
we attempting find html element "c_pagination_list" on following forever21 page: http://www.forever21.com/product/category.aspx?br=21men&category=mens-tops. however, when use beautifulsoup element, returns empty or none. below following ways attempted element:
numberarray = soup.findall('div', attrs={ 'class' : 'c_pagination_list'}) number = soup.find('div', class_='c_pagination_list') number = soup.select('div.c_pagination_list')
can explain proper syntax getting information or we're missing here?
use this:
numberarray = soup.findall('div', {'class': 'c_pagination_list'})
i think should work.
Comments
Post a Comment