Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 网页抓取,如何接受这个谷歌窗口_Python_Web Scraping - Fatal编程技术网

Python 网页抓取,如何接受这个谷歌窗口

Python 网页抓取,如何接受这个谷歌窗口,python,web-scraping,Python,Web Scraping,你好,我需要一些帮助来接受谷歌窗口 这是我的密码 PATH=r'C:\Program Files (x86)\chromedriver.exe' driver= webdriver.Chrome(PATH) web_google='https://www.google.com/' google=driver.get(web_google) cuadrado_close=driver.find_element_by_xpath('/html/body') 我找不到“接受”按钮 我附加图像以接受

你好,我需要一些帮助来接受谷歌窗口

这是我的密码

PATH=r'C:\Program Files (x86)\chromedriver.exe'
driver= webdriver.Chrome(PATH)
web_google='https://www.google.com/'
google=driver.get(web_google)
cuadrado_close=driver.find_element_by_xpath('/html/body') 
我找不到“接受”按钮

我附加图像以接受按钮


谢谢

我不确定那里是否有“接受”按钮。Chrome应该显示感兴趣的页面。然后您可以转到
moretools==>developer tools
并获取有关该页面的更多信息。我找到了一个登录按钮并执行了
驱动程序。通过链接文本(“登录”)查找元素。单击()。我认为一些selenium教程会有所帮助!请拍摄接受按钮的屏幕截图。我刚刚附加了图像谢谢所有Tdelay和Yuno它对我不起作用。我得到以下错误:NoSuchElementException:没有这样的元素:无法找到元素:{“方法”:“css选择器”,“选择器”:。下一个对话框关闭“}(会话信息:chrome=86.0.4240.198)