我正在尝试使用 beautifulsoup 解析网页。我可以看到页面已使用 chromedriver 在 selenium 中正确加载,但最终结果为 null,当我在 beautifulsoup 中看到解析的页面打印时,它没有显示 selenium 在其自动浏览器中显示的整个页面。
我为此目的使用的代码是:
page_soup = soup(driver.page_source, "html.parser")
print (page_soup)
containers = page_soup.findAll("div", class_="row ploc-l-row--gutterV flex-wrap flex-align-start flex-center-vertical")
print (len(containers))
我需要访问每个合作伙伴信息,但结果为空。我正在处理的页面是
https://locatr.cloudapps.cisco.com/WWChannels/LOCATR/openBasicSearch.do;jsessionid=8CDF9284D014CFF911CB8E6F81812619
哔哔one
慕哥9229398
白衣染霜花
相关分类