QQZone_AutoDownload_Album
QQZone_AutoDownload_Album copied to clipboard
Python+selenium 自动下载QQ空间相册
我修改了一些代码: ` while True: album_list = driver.find_elements_by_css_selector('.c-tx2.js-album-desc-a')[which_album] print('进入相册中...', album_list.get_attribute('title')) album_list.click() time.sleep(5) #driver.find_element_by_class_name('pic-num-wrap') win_height_before_scroll = driver.get_window_size()['height'] driver.switch_to.default_content() length = length + 100 js = "var q=document.documentElement.scrollTop=" + str(500 + length) driver.execute_script(js)...
图片命名问题
如果相册内图片文件名一样的话,下载下来就会进行覆盖
# 首先感谢项目作者SXF 积极的邮件回复和Bug修复 ## 使用说明 ### 安装火狐浏览器及Selenium驱动geckodriver [火狐浏览器](http://www.firefox.com.cn/) [Python安装selenium,配置火狐浏览器环境](https://www.cnblogs.com/glumer/p/6088258.html) ### 解压作者项目中的selenium_firefox.zip 复制解压后的文件夹路径 到QQzone.py中profile = webdriver.FirefoxProfile(r'路径') ### python3.7依赖供参考 requirements.txt beautifulsoup4==4.7.1 bs4==0.0.1 certifi==2019.3.9 chardet==3.0.4 idna==2.8 lxml==4.3.3 Pillow==6.0.0 requests==2.21.0 selenium==3.141.0 soupsieve==1.9.1 urllib3==1.24.3 ###...
有66个相册,只获取了前30个,尝试多次都是如此,但是前30个是可以正常下载的,部分情况会闪退或者卡住
使用了,非常方便。 发现有2个问题: 一,相册中带有视频,但下载出来的文件只是视频的封面信息,保存成了MP4格式。 二,QQ相册上传的时候,是带上了拍摄时间的,所以QQ相册会自动以拍摄时间建立时间线,咱们下载的时候,能不能把原照片的拍摄时间信息也带上?