From 435fd12a170b93fbf0a68d01b176f3311e3902af Mon Sep 17 00:00:00 2001 From: Kobe972 <71507738+Kobe972@users.noreply.github.com> Date: Mon, 14 Feb 2022 22:39:05 +0800 Subject: [PATCH] Update main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index bee286c..991ba19 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ import requests import argparse -keys=['运筹学'] #这里放文件名中要有的关键字 +keys=['算法','algorithm'] #这里放文件名中要有的关键字 search='ustc course' #这里放搜索关键字 parser = argparse.ArgumentParser(description='Ustc-course Spyder') parser.add_argument('token', help='token for your github account', type=str) @@ -20,9 +20,9 @@ content=requests.get(tree_url,headers=headers) if 'tree' not in content.json().keys(): continue - files=full_name + files=full_name.lower() for file in content.json()["tree"]: - files+=file['path'] + files+=file['path'].lower() for key in keys: if key in files: url_list.append('https://github.com/'+full_name)