Files
NotionNext/baidupush.sh
2023-08-07 15:27:47 +08:00

12 lines
418 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
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 # 删除文件