test no arg

This commit is contained in:
Ghlerrix
2023-09-02 15:16:01 +08:00
parent 79225e132f
commit fd5d95e4c6
2 changed files with 2 additions and 2 deletions

View File

@@ -36,4 +36,4 @@ jobs:
run: pip install requests
- name: Push
run: python pushUrl.py --url ${{ secrets.URL }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }}
run: python pushUrl.py --url ${{ secrets.URLs }} --baidu_token ${{ secrets.BAIDU_TOKEN }} --bing_api_key ${{ secrets.BING_API_KEY }}

View File

@@ -70,7 +70,7 @@ def push_to_baidu(site, urls, token):
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='parse sitemap')
parser.add_argument('--url', type=str, help='The url of your website')
parser.add_argument('--url', type=str, default=None, help='The url of your website')
parser.add_argument('--bing_api_key', type=str, default=None, help='your bing api key')
parser.add_argument('--baidu_token', type=str, default=None, help='Your baidu push token')
args = parser.parse_args()