diff --git a/get_aoyun.py b/get_aoyun.py new file mode 100644 index 0000000..6d6a678 --- /dev/null +++ b/get_aoyun.py @@ -0,0 +1,21 @@ +import requests +import re + +header = {"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"} + +url = "http://sports.news.cn/olympicparis2024/index.html" +response = requests.get(url=url, headers=header) +response.encoding = 'utf-8' +data = response.text + +list1 = re.findall("blank'>(.*?)",data) +list2 = re.findall('