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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -