# 115 网盘二维码扫码登录.
## 安装
你可以通过 [pypi](https://pypi.org/project/p115qrcode/) 安装
```console
pip install -U p115qrcode
```
## 使用
### 作为模块
详情请查看具体函数的文档
```python
import p115qrcode
```
### 作为命令行
```console
$ p115qrcode -h
usage: p115qrcode [-h] [-l] [-v] {cmd,web} ...
115 网盘扫码登录
positional arguments:
{cmd,web}
options:
-h, --help show this help message and exit
-l, --license 输出授权信息
-v, --version 输出版本号
$ p115qrcode cmd -h
usage: p115qrcode cmd [-h] [-o OUTPUT_FILE] [-oq] [-c COOKIES] [-cp COOKIES_PATH] [-l] [-v]
[{web,ios,115ios,android,115android,115ipad,tv,qandroid,wechatmini,alipaymini,harmony}]
115 网盘扫码登录(命令行版)
positional arguments:
{web,ios,115ios,android,115android,115ipad,tv,qandroid,wechatmini,alipaymini,harmony}
选择一个 app 进行登录,默认值 'alipaymini'
options:
-h, --help show this help message and exit
-o OUTPUT_FILE, --output-file OUTPUT_FILE
保存到文件,未指定时输出到 stdout
-oq, --open-qrcode 在浏览器中打开二维码,而不是在命令行输出
-c COOKIES, --cookies COOKIES
115 登录 cookies 或二维码的 uid,使用后可以自动扫码,优先级高于 -cp/--cookies-path
-cp COOKIES_PATH, --cookies-path COOKIES_PATH
cookies 文件保存路径,使用后可以自动扫码
-l, --license 输出授权信息
-v, --version 输出版本号
$ p115qrcode web -h
usage: p115qrcode web [-h] [-H HOST] [-P PORT] [-c] [-d] [-l] [-v]
115 网盘扫码登录(网页版)
options:
-h, --help show this help message and exit
-H HOST, --host HOST ip 或 hostname,默认值:'localhost'
-P PORT, --port PORT 端口号,默认值:8000
-c, --cors 标识浏览器已经使用 CORS 插件,因此不需要后台代理接口的调用
-d, --debug 启用 debug 模式
-l, --license 输出授权信息
-v, --version 输出版本号
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115qrcode",
"name": "p115qrcode",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": "python-115, 115, qrcode",
"author": "ChenyangGao",
"author_email": "wosiwujm@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/aa/2b/7c107495134cb89c4f760b0f884b56ca686d5e3491c1a1dc0af69a359fdc/p115qrcode-0.0.3.tar.gz",
"platform": null,
"description": "# 115 \u7f51\u76d8\u4e8c\u7ef4\u7801\u626b\u7801\u767b\u5f55.\n\n## \u5b89\u88c5\n\n\u4f60\u53ef\u4ee5\u901a\u8fc7 [pypi](https://pypi.org/project/p115qrcode/) \u5b89\u88c5\n\n```console\npip install -U p115qrcode\n```\n\n## \u4f7f\u7528\n\n### \u4f5c\u4e3a\u6a21\u5757\n\n\u8be6\u60c5\u8bf7\u67e5\u770b\u5177\u4f53\u51fd\u6570\u7684\u6587\u6863\n\n```python\nimport p115qrcode\n```\n\n### \u4f5c\u4e3a\u547d\u4ee4\u884c\n\n```console\n$ p115qrcode -h\nusage: p115qrcode [-h] [-l] [-v] {cmd,web} ...\n\n115 \u7f51\u76d8\u626b\u7801\u767b\u5f55\n\npositional arguments:\n {cmd,web}\n\noptions:\n -h, --help show this help message and exit\n -l, --license \u8f93\u51fa\u6388\u6743\u4fe1\u606f\n -v, --version \u8f93\u51fa\u7248\u672c\u53f7\n\n$ p115qrcode cmd -h\nusage: p115qrcode cmd [-h] [-o OUTPUT_FILE] [-oq] [-c COOKIES] [-cp COOKIES_PATH] [-l] [-v]\n [{web,ios,115ios,android,115android,115ipad,tv,qandroid,wechatmini,alipaymini,harmony}]\n\n115 \u7f51\u76d8\u626b\u7801\u767b\u5f55\uff08\u547d\u4ee4\u884c\u7248\uff09\n\npositional arguments:\n {web,ios,115ios,android,115android,115ipad,tv,qandroid,wechatmini,alipaymini,harmony}\n \u9009\u62e9\u4e00\u4e2a app \u8fdb\u884c\u767b\u5f55\uff0c\u9ed8\u8ba4\u503c 'alipaymini'\n\noptions:\n -h, --help show this help message and exit\n -o OUTPUT_FILE, --output-file OUTPUT_FILE\n \u4fdd\u5b58\u5230\u6587\u4ef6\uff0c\u672a\u6307\u5b9a\u65f6\u8f93\u51fa\u5230 stdout\n -oq, --open-qrcode \u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u4e8c\u7ef4\u7801\uff0c\u800c\u4e0d\u662f\u5728\u547d\u4ee4\u884c\u8f93\u51fa\n -c COOKIES, --cookies COOKIES\n 115 \u767b\u5f55 cookies \u6216\u4e8c\u7ef4\u7801\u7684 uid\uff0c\u4f7f\u7528\u540e\u53ef\u4ee5\u81ea\u52a8\u626b\u7801\uff0c\u4f18\u5148\u7ea7\u9ad8\u4e8e -cp/--cookies-path\n -cp COOKIES_PATH, --cookies-path COOKIES_PATH\n cookies \u6587\u4ef6\u4fdd\u5b58\u8def\u5f84\uff0c\u4f7f\u7528\u540e\u53ef\u4ee5\u81ea\u52a8\u626b\u7801\n -l, --license \u8f93\u51fa\u6388\u6743\u4fe1\u606f\n -v, --version \u8f93\u51fa\u7248\u672c\u53f7\n\n$ p115qrcode web -h\nusage: p115qrcode web [-h] [-H HOST] [-P PORT] [-c] [-d] [-l] [-v]\n\n115 \u7f51\u76d8\u626b\u7801\u767b\u5f55\uff08\u7f51\u9875\u7248\uff09\n\noptions:\n -h, --help show this help message and exit\n -H HOST, --host HOST ip \u6216 hostname\uff0c\u9ed8\u8ba4\u503c\uff1a'localhost'\n -P PORT, --port PORT \u7aef\u53e3\u53f7\uff0c\u9ed8\u8ba4\u503c\uff1a8000\n -c, --cors \u6807\u8bc6\u6d4f\u89c8\u5668\u5df2\u7ecf\u4f7f\u7528 CORS \u63d2\u4ef6\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u540e\u53f0\u4ee3\u7406\u63a5\u53e3\u7684\u8c03\u7528\n -d, --debug \u542f\u7528 debug \u6a21\u5f0f\n -l, --license \u8f93\u51fa\u6388\u6743\u4fe1\u606f\n -v, --version \u8f93\u51fa\u7248\u672c\u53f7\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "115 \u7f51\u76d8\u4e8c\u7ef4\u7801\u626b\u7801\u767b\u5f55",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115qrcode",
"Repository": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115qrcode"
},
"split_keywords": [
"python-115",
" 115",
" qrcode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "46ab46226a13eb2a896fcc7f31f527e33b366a8ceb27e050f8ac2b7281a6fc6a",
"md5": "c332db70d62d49a2d1861430b96b5a83",
"sha256": "2430d94334b5e37627b2a19a527d233c5472e50ddeb61d984d5898bd1cf35c21"
},
"downloads": -1,
"filename": "p115qrcode-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c332db70d62d49a2d1861430b96b5a83",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 49510,
"upload_time": "2024-12-29T04:14:34",
"upload_time_iso_8601": "2024-12-29T04:14:34.832492Z",
"url": "https://files.pythonhosted.org/packages/46/ab/46226a13eb2a896fcc7f31f527e33b366a8ceb27e050f8ac2b7281a6fc6a/p115qrcode-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "aa2b7c107495134cb89c4f760b0f884b56ca686d5e3491c1a1dc0af69a359fdc",
"md5": "1727e41ba9210a293ae0315c6fd9db31",
"sha256": "b527bf3e2b5853fd72037a9d45ce13a3aa34f982bde90c986d74955d3dc36ce8"
},
"downloads": -1,
"filename": "p115qrcode-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "1727e41ba9210a293ae0315c6fd9db31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 34301,
"upload_time": "2024-12-29T04:14:38",
"upload_time_iso_8601": "2024-12-29T04:14:38.006707Z",
"url": "https://files.pythonhosted.org/packages/aa/2b/7c107495134cb89c4f760b0f884b56ca686d5e3491c1a1dc0af69a359fdc/p115qrcode-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-29 04:14:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ChenyangGao",
"github_project": "p115client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "p115qrcode"
}