Using 115 for hosting image.
Project description
Using 115 for hosting image.
Installation
You can install from pypi
pip install -U p115imghost
Usage
$ p115imghost -h
usage: p115imghost [-h] [-b BASE_URL] [-c COOKIES] [-cp COOKIES_PATH] [-v] [-l] [file ...]
115 图床(每张图片不大于 50 MB)
positional arguments:
file 图片路径或链接
options:
-h, --help show this help message and exit
-b, --base-url BASE_URL
图片的基地址
- 如果不传,上传到 U_4_-1,获取永久的图片链接
- 如果传 "",上传到 U_4_-1,获取一次性的图片链接,有效时间 1 小时
- 其它(例如 "http://localhost:8000?image=1"),上传到 U_12_0,视为 302 代理,会把 user_id、id、pickcode、sha1 和 size 作为查询参数拼接到其后
-c, --cookies COOKIES
cookies 字符串,优先级高于 -cp/--cookies-path
-cp, --cookies-path COOKIES_PATH
cookies 文件保存路径,默认为当前工作目录下的 115-cookies.txt
-v, --version 输出版本号
-l, --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
p115imghost-0.0.2.tar.gz
(14.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file p115imghost-0.0.2.tar.gz.
File metadata
- Download URL: p115imghost-0.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07fad2904737641811ec48ad559d4dd9e1573fa649cf34f638169679e5ad49b1
|
|
| MD5 |
bc9ee91755a90783673e470798a33ca1
|
|
| BLAKE2b-256 |
1b82be60ef65ff222acd315baeb18d4bcc4b35ada404af7cb839937316698d63
|
File details
Details for the file p115imghost-0.0.2-py3-none-any.whl.
File metadata
- Download URL: p115imghost-0.0.2-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085835d0d1c0f090ab4011694341703609077aa9e6fb27764e91d36f99daca5b
|
|
| MD5 |
b41c970c038a868e0150f9f4966e6235
|
|
| BLAKE2b-256 |
f02390537b692ed68990bbe7e2eca6ddbbcd17067be439c090f3a79cd406406f
|