【发布时间】:2017-06-08 06:58:38
【问题描述】:
我打开了一个网页并使用 webdriver 代码登录。为此使用 webdriver,因为在我设置为抓取之前,该页面需要登录和各种其他操作。
目的是从这个打开的页面中抓取数据。需要找到链接并打开,所以selenium webdriver和BeautifulSoup会有很多组合。
我查看了 bs4 的文档,BeautifulSoup(open("ccc.html")) 抛出错误
soup = bs4.BeautifulSoup(open("https://m/search.mp?ss=Pr+Dn+Ts"))
OSError:[Errno 22] 无效参数:'https://m/search.mp?ss=Pr+Dn+Ts'
我认为这是因为它不是.html?
【问题讨论】:
标签: python selenium beautifulsoup