From fb2eef35d9811ba9cf2e29eb36fc21c52bd5ba4f Mon Sep 17 00:00:00 2001 From: Ghlerrix Date: Mon, 7 Aug 2023 15:27:47 +0800 Subject: [PATCH] modify baidupush.sh --- baidupush.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/baidupush.sh b/baidupush.sh index debdf0c7..7901c56a 100644 --- a/baidupush.sh +++ b/baidupush.sh @@ -3,8 +3,10 @@ # 确保脚本抛出遇到的错误 set -e -# 百度链接推送 +# 解析sitemap.xml, 记得换成你自己的域名,注意检查是否包含‘www’ python baidupush.py 'www.ghlerrix.cn' + +# 百度链接推送,换成自己的token和域名 curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=https://www.ghlerrix.cn&token=oUldnU4HZvSTlh0e" rm -rf urls.txt # 删除文件 \ No newline at end of file