test api push

This commit is contained in:
Ghlerrix
2023-08-07 15:12:49 +08:00
parent ffcec4f3a5
commit b40b8af201
4 changed files with 8 additions and 14 deletions

View File

@@ -13,6 +13,6 @@ if __name__ == '__main__':
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)
# print(i)
op_xml_txt = open('xml.txt', 'a')
op_xml_txt.write('%s\n' % i)