Selenium 爬取百度图片
# coding=utf-8
"""
获取10张百度图片
"""
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
import time, requests
def download_img(kw):
# 打开浏览器
browser = webdriver.Chrome()
time.sleep(3)
# 对方访问对应的网页
url = r'https://image.baidu.com/'
browser.get(url)
time.sleep