Loading... # AutoCookieForQQMusic Get Cookie From QQMusic Website Without Opening browser # 运行前置 GoogleChrome(已在Windows10以及CentOS 7做测试)或Chromium(未测试) # 开发环境 # 运行环境: 1. Python 3(3.6+为最佳) 2. Python的一些库: - `selenium`(`Windows 10:4.1.3,CentOS 7:3.141.0`) - `pyzbar`(`Windows 10 & CentOS 7:0.1.9`) - `qrcode`(`Windows 10 & CentOS 7:7.3.1`) - `qrcode-terminal`(`Windows 10 & CentOS 7:0.8`) - `Pillow`(`Windows 10:9.1.0,CentOS 7:8.4.0`) 3. `Chrome` 以及对应的 `ChromeDriver` (`Windows 10:100.0.4896.60,CentOS 7:99.0.4844.84`) CentOS 7下的Chrome安装 ```bash wget http://dl.google.com/linux/chrome/rpm/stable/x86_64//google-chrome-stable-99.0.4844.84-1.x86_64.rpm sudo yum localinstall google-chrome-stable-99.0.4844.84-1.x86_64.rpm ``` CentOS 7下ChromeDriver安装:我直接`yum install chromedrive`了 Windows 10我直接安装普通Chrome然后添加`Path`了 ChromeDriver的话是用`https://chromedriver.storage.googleapis.com` 找到对应版本安装 4. CentOS 7还要安装zbar库 ```bash sudo yum install zbar-devel sudo yum install zbar ``` 5. 由于`Chromium`原因现仅支持 ``` linux_x64 Mac Win Win_x64 ``` # 食用方法 1. 安装`Chrome`或`Chromium` 2. 安装对应`ChromeDriver` 3. 将二者加入`PATH` 4. 安装`Python`以及上述相关库文件 5. 运行程序并按照程序指示操作 # ToDo: * [ ] 优化扫码的判断 * [ ] 浏览器是否显示的配置 * [ ] 引入配置文件 * [ ] 使用Action编译 * [ ] 更换浏览器尝试适配Linux 32 # bug? 请提交[New Issue](https://github.com/brokenpoems/AutoCookieForQQMusic/issues/new/choose)或[博客反馈](https://www.brokenpoems.xyz/archives/65/) ps:请附上网络环境和运行系统 # 开发日志 <div class="preview"> <div class="post-inser post box-shadow-wrap-normal"> <a href="https://www.brokenpoems.xyz/archives/62/" target="_blank" class="post_inser_a no-external-link no-underline-link"> <div class="inner-image bg" style="background-image: url(https://www.brokenpoems.xyz/usr/themes/handsome/assets/img/sj/1.jpg);background-size: cover;"></div> <div class="inner-content" > <p class="inser-title">Re:拿python写脚本自动获取QQ音乐cookie的开发日志</p> <div class="inster-summary text-muted"> 实际上今天是开发这个的第二天了 然后是第n次5点了原因:由于handsome自带的播放器需要经常更换cookie(... </div> </div> </a> <!-- .inner-content #####--> </div> <!-- .post-inser ####--> </div> 最后修改:2022 年 04 月 21 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏
1 条评论
大佬可否分享一下脚本。OωO