This project has been archived by its maintainers, and is no longer receiving any updates.
百度搜索提交工具
本工具将百度站长API提交的命令集成优化,改成利于使用的Python函数,方便程序调用。
本工具由heStudio开发,你可以通过 https://www.hestudio.net/ 前往heStudio博客。
结构
hbsst.py(主程序, 隐藏)hbsst_config.json(预设文件)hbsst_return.json(系统返回值的文件)
使用方法
- 首次使用
1.1. 你的设备需要安装Python 3,wget
1.2. 安装hbsst
pip install hbsst
1.3. 在工作目录创建预设
1.3.1. 新建 hbsst_config.json 文件
1.3.2. 写入预设
{
"预设名称": "百度站长的API接口调用地址"
}
例如:
{
"demo": "http://data.zz.baidu.com/urls?site=https://www.example.com&token=xxxxxxxxx"
}
- 调用方法
例如:
python3 -c "import hbsst;hbsst.submit(config='demo', url='https://www.example.com/1.html')"
如果需要提交多个,可以用换行符\n隔开。
例如:
python3 -c "import hbsst;hbsst.submit(config='demo', url='https://www.example.com/1.html\nhttps://www.example.com/2.html')"
- 获取返回结果
返回结果会保存在 hbsst_return.json 内,在执行命令是结果会直接输出人类可以看懂的文字。开发者可以通过获取success或error的存在状态来判断是否成功提交,可以通过获取error的值来获取错误码。有关 hbsst_return.json 的内容结构,你可以访问 https://ziyuan.baidu.com/linksubmit/index 获取。
贡献
你可以直接提交PR到本仓库。
反馈&建议
你可以使用以下方法:
- 向本仓库提交Issue
- 在 heStudio Talking 提交:https://www.hestudio.net/talking
赞助
Metadata
Release files for hbsst 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hbsst-1.0.2.tar.gz | 15.8 kB | Without provenance | Details for hbsst-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hbsst-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for hbsst-1.0.2-py3-none-any.whl |
Total release size: 47.5 kB
Release files / hbsst-1.0.2.tar.gz
| Download URL | hbsst-1.0.2.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c85a2c549e597ba29b1ce6749a230b97877c0ddd69ddaca29df28e85fb502d42
|
|
BLAKE2b-256 checksum How to use checksums |
f56f30744614fb8db23fc2aa5e04ac9e55f58a8399d8a1603c5dcf89190d49a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / hbsst-1.0.2-py3-none-any.whl
| Download URL | hbsst-1.0.2-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e17fccaffa16a67e7b4a0c81e6da498c2d2ddb62c57c7a8919ce54d854c73b4
|
|
BLAKE2b-256 checksum How to use checksums |
c9dc0912596298534dfa754707ffceb30cc7911de426c9e51d87f51dda2e90d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for hbsst 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.