我遇到一个网站,一进入就会prompt,提醒需要输入帐密,
我可以用selenium连上 https://username:[email protected],
并取得我想要爬取的资料
但selenium实在太慢了,所以我想回归原本使用requests+lxml,
却无法使用 https://username:[email protected] 的方式登入,
会一直引发ConnectionError(err, request=request)
我想试着用requests.get(url,auth=(username,password))
也一样会引发ConnectionError
想请问像这类的网站是否可直接利用requests登入?
谢谢