WebScrapping findAll不能获取所有内容

问题描述

the image shows the area that i want to access

图像显示了我要访问的区域

containers = pagebs('div',{'class':"search-content"})

当我打印容器时,它只会显示

[<div class="search-content">
</div>]

里面什么都没有。我尝试在其中搜索无效的标签解决方法,还是不管我做什么都无法访问

这是我到目前为止所写的

from bs4 import BeautifulSoup as BS
from urllib.request import urlopen as uReq
url = 'https://bahrain.sharafdg.com/?q=asus%20laptops&post_type=product'
uclient = uReq(url)
pagehtml = uclient.read() 
uclient.close()
pagebs = BS(pagehtml,'html.parser')
containers = pagebs('div',{'class':"search-content"})
 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)