Git Product home page Git Product logo

quarkpantool's Introduction

QuarkPanTool

Python Version Latest Release Downloads

QuarkPanTool 是一个简单易用的小工具,旨在帮助用户快速批量转存夸克网盘分享文件。它提供了一种简便的方式,让您能够轻松地将夸克网盘中的共享文件保存到您的个人账户中。

功能特点

  • 运行稳定:基于playwright支持网页登录夸克网盘,无需手动获取Cookie。
  • 轻松操作:简洁直观的命令行界面,方便快捷地完成文件转存。
  • 批量转存:支持一次性转存多个夸克网盘分享链接中的文件。
  • 本地下载:支持批量下载网盘文件夹中的所有文件。

如何使用

如果不想自己部署环境,可以下载打包好的可执行文件(exe)压缩包 QuarkPanTool ,解压后直接运行即可。

1.下载代码

git clone https://github.com/ihmily/QuarkPanTool.git

2.安装依赖

pip install -r requirements.txt
playwright install firefox

3.运行

python quark.py

运行后会使用playwright进行登录操作,当然也可以自己手动获取cookie填写到config/cookies.txt文件中。如果想切换登录账号,直接将cookies.txt文件清空,然后打开软件重新登录即可。

注意事项

  • 首次运行会比较缓慢,请注意底部任务栏,程序会自动打开一个浏览器,让你登录夸克网盘,登录完成后,请不要手动关闭浏览器,回到软件界面按Enter键,浏览器会自动关闭并保存你的登录信息,下次运行就不需要登录了。
  • 接着会提示让你输入保存位置的文件夹ID,如果你不知道ID请直接按回车键,或者输入0代表将你的文件保存在网盘根目录。
  • 执行批量转存之前,请先在url.txt文件中填写网盘分享地址(一行一个)

效果演示

ScreenShot1

许可证

QuarkPanTool 使用 Apache-2.0 license 许可证,详情请参阅 LICENSE 文件。


免责声明:本工具仅供学习和研究使用,请勿用于非法目的。由使用本工具引起的任何法律责任,与本工具作者无关。

quarkpantool's People

Contributors

ihmily avatar

Stargazers

Yan Yin avatar  avatar daiyouming avatar ErickCheng avatar  avatar Lorenzo Stflorant avatar  avatar Laban avatar jsl avatar KingJA avatar Qin MingJie avatar  avatar 欧玉志 avatar  avatar  avatar 小北先森 avatar  avatar  avatar  avatar 小猿 avatar  avatar  avatar  avatar  avatar  avatar Johnson.jia avatar it985 avatar

Watchers

 avatar  avatar

quarkpantool's Issues

求新增功能

能否通过,定时(可设置时间)遍历“转存有更新”,自动更新对应文件夹的文件,也就是追更,或者大佬有没有更好的方法?

希望新增链接失效的逻辑判断

失效链接

https://pan.quark.cn/s/62a306310038

报错信息

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\QuarkPanTool\quark.py", line 394, in <module>
    asyncio.run(quark_file_manager.run(url.strip(), to_dir_id))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Desktop\QuarkPanTool\quark.py", line 194, in run
    stoken = await self.get_stoken(pwd_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Desktop\QuarkPanTool\quark.py", line 58, in get_stoken
    return json_data["data"]["stoken"] if json_data['data'] else ""
                                          ~~~~~~~~~^^^^^^^^
KeyError: 'data'

运行图片

image
image

太赞了

太谢谢了,问下转存太快会被封号吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.