mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
fix url
This commit is contained in:
@@ -9,7 +9,7 @@ if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='parse sitemap')
|
||||
parser.add_argument('url', help='The url of your website')
|
||||
args = parser.parse_args()
|
||||
url = f'{args.url}/sitemap.xml'
|
||||
url = f'https://{args.url}/sitemap.xml'
|
||||
result = requests.get(url)
|
||||
big = re.findall('<loc>(.*?)</loc>', result.content.decode('utf-8'), re.S)
|
||||
for i in big:
|
||||
|
||||
Reference in New Issue
Block a user