submit url to baidu.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baidu-url-submit-1.0.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for baidu_url_submit-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f76dc1851d6698cdf744d4c96422a0371e9f8a81a4215cd79de55222949d6d3d |
|
MD5 | ffe0ec42441a2c77a7d5458b3d88f8b7 |
|
BLAKE2b-256 | 544606a719d354779a69e440b987ec61e04a41c196a33cb8c5bdca77f93795ee |