115网盘添加离线下载任务命令行工具
Project description
Offline 115 (115 离线下载 python 命令行工具)
author: owtotwo
usage: offl115 [-h] [-c cookies] [-t torrent [torrent ...]] [-m magnet [magnet ...]] [--check] [-v]
115离线下载命令行工具(用于添加115离线下载任务)
optional arguments:
-h, --help show this help message and exit
-c cookies, --cookies cookies
本地115的cookies文件(仅支持分号间隔的cookies字符串为文本内容)
-t torrent [torrent ...], --torrent torrent [torrent ...]
本地种子文件
-m magnet [magnet ...], --magnet magnet [magnet ...]
磁力链接(最多15个)
--check 检查本地cookies是否能正常登陆115
-v, --version 显示此命令行当前版本
Requirements
- Windows 10
- Python3.7+
- pip
- pypi
- bencode.py == 4.0.0
- requests == 2.24.0
Install and Run on Win10
$ pip install Offline-115
$ (Login your 115 and Save the cookies to file 'C:\Users\<You>\.115.cookies' in format 'Semicolon separated name=value pairs' by EditThisCookie)
$ offl115 -h
$ offl115 --check (Make sure it prints 'The 115 cookies are Ok!')
$ offl115 -m "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a"
Install from source code and Run on Win10
(* Need Git for Windows)
$ (Login your 115 and Save the cookies to file 'C:\Users\<You>\.115.cookies' in format 'Semicolon separated name=value pairs' by EditThisCookie)
$ git clone https://github.com/owtotwo/Offline-115.git
$ cd Offline-115
$ py -3 setup.py install
$ offl115 -h
$ offl115 --check (Make sure it prints 'The 115 cookies are Ok!')
$ offl115 -m "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a"
Usage
Login (登录)
请在115浏览器登录后,推荐使用 EditThisCookie 插件导出 cookies 到 {HOMEPATH}/.115.cookies
即
可正常使用。cookies 只支持分号分隔的格式(Semicolon separated name=value pairs),如a=1;b=2;c=3;
。
Help (显示命令行使用方法)
$ offl115 -h
Check cookies (检查本地115cookies文件是否合法)
$ offl115 --check
115 cookies file path is C:\Users\<You>\.115.cookies ...
The 115 cookies are Ok!
$ offl115 --check -c "C:\Your\New\Path\cookies.txt"
115 cookies file path is C:\Your\New\Path\cookies.txt ...
The 115 cookies are Ok!
Add torrent (单个本地种子文件)
$ offl115 -t "C:\Users\<You>\Desktop\abc.torrent"
Add magnet (单个磁力链接)
$ offl115 -m "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a"
Add magnet (用其他路径的115cookies文件添加单个磁力链接)
$ offl115 -c "C:\Your\New\Path\cookies.txt" -m "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a"
Add multiple torrents (多个本地种子文件)
$ offl115 -t "C:\Users\<You>\Desktop\abc.torrent" "C:\Users\<You>\Desktop\def.torrent"
Add multiple magnets (多个磁力链接)
$ offl115 -m "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a" "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88b"
Help (显示命令行工具当前版本)
$ offl115 -v
Related Repo
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Offline-115-0.1.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file Offline-115-0.1.1.tar.gz
.
File metadata
- Download URL: Offline-115-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ee0ad1543b278e490a00b10efcfd324602f3738d2971e930f669b4f04742e04 |
|
MD5 | a4be159dda8c1aa2e05df66c7c2e4826 |
|
BLAKE2b-256 | 6c08780fb7d99728dc94022d20d1d146b6dea2da53db66759917ab4330407fd5 |
File details
Details for the file Offline_115-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: Offline_115-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf92d3c8615645bdf9c7396a846f3beccbb01ed75f56671460160583523f7286 |
|
MD5 | 764dbd5c0faa8d74b56c65362550fb1f |
|
BLAKE2b-256 | 7689a8a04e751da0f7aca838eab31471e263e63617f790237641fbd505924074 |