mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
12 lines
352 B
Python
12 lines
352 B
Python
import re
|
|
import ssl
|
|
import requests
|
|
ssl._create_default_https_context = ssl._create_unverified_context
|
|
url = 'https://www.ghlerrix.cn/sitemap.xml'
|
|
result = requests.get(url)
|
|
big = re.findall('<loc>(.*?)</loc>', result.content.decode('utf-8'), re.S)
|
|
for i in big:
|
|
print(i)
|
|
# op_xml_txt = open('xml.txt', 'a')
|
|
# op_xml_txt.write('%s\n' % i)
|