mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
test action and parse
This commit is contained in:
11
baidupush.py
Normal file
11
baidupush.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user