Skip to main content

baidu-url-submit

Introduction

This tool help you to submit your url to baidu.

Only for python3.

The code is simple, I also use it to learn how to package python projects.

About the detail of submit url to baidu, you can visit: https://ziyuan.baidu.com/

Install

pip install baidu-url-submit

Demo

import baidu_url_submit

site = "blog.wansho.cn" # your site
token = "xxx" # from https://ziyuan.baidu.com/
urls = [
        "http://blog.wansho.cn/opinion/notes.html",
        "http://blog.wansho.cn/reading/movie-top.html",
    ] # urls to submit


result = baidu_url_submit.submit(site, token, urls)
# if result == 2, it means two url submit success.
# if result < 2, it means some urls submit fail.
# 
# The reason why submit fail:
# 1. The submitted url is not the url of this site.
# 2. invalid url

LICENSE

MIT

Metadata

Release files for baidu-url-submit 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baidu-url-submit 1.0.0
File Size Uploaded Provenance Actions
baidu-url-submit-1.0.0.tar.gz 2.2 kB Without provenance Details for baidu-url-submit-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for baidu-url-submit 1.0.0
File Interpreter ABI Platform Actions
baidu_url_submit-1.0.0-py3-none-any.whl Python 3 none any Details for baidu_url_submit-1.0.0-py3-none-any.whl

Total release size: 5.8 kB

Release files / baidu-url-submit-1.0.0.tar.gz

Download URL baidu-url-submit-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1ed6eee2c76714ce376cfe746bbd4e626be9b79bc6765d5ad1a93e17a76079a
BLAKE2b-256 checksum
How to use checksums
128f4c051002564b88eb0854265c0113188f95ea9b6b83b32fb4adf9c8827d67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

Release files / baidu_url_submit-1.0.0-py3-none-any.whl

Download URL baidu_url_submit-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f76dc1851d6698cdf744d4c96422a0371e9f8a81a4215cd79de55222949d6d3d
BLAKE2b-256 checksum
How to use checksums
544606a719d354779a69e440b987ec61e04a41c196a33cb8c5bdca77f93795ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

Security for baidu-url-submit 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page