爬取QQ空间相册

代码:

github上搜索Litreily capturer
https://github.com/Litreily/capturer

报错1:

爬取QQ空间相册
报错原因:
(1)找不到chromedriver;
(2)subprocess.py文件中__init__中的shell=False

对于原因(1):
在谷歌浏览器地址栏输入 chrome://version/ 查看版本信息
在http://npm.taobao.org/mirrors/chromedriver/
或者http://chromedriver.storage.googleapis.com/index.html
下载相应版本的驱动
解压后将chromedriver.exe文件放置到谷歌浏览器安装的文件夹下,并添加到环境变量Path中
对于原因(2):
找到subprocess.py文件,将__init__中的shell=True

报错2:

爬取QQ空间相册
将chromedriver.exe 放入安装的selenium库下的webdriver\chrome中
代码调用时制定该目录:chrome_driver=r"D:\Python\selenium\webdriver\chrome\chromedriver.exe"
driver=webdriver.Chrome(executable_path=chrome_driver)