import requests
import re
import bs4
x = requests.get('http://gs.xjtu.edu.cn/index.htm')
#
# 2023-09-12
# 培养工作|[置顶]关于2023年下半年全国大学英语四、六级考试报名的通知
#
# 用正则获取其中的 time
data_time = re.findall('(.*?)', x.text)
# 用 bs4 获取其中的 time
soup = bs4.BeautifulSoup(x.text, 'html.parser')
data_time = soup.find_all('span', class_='time fr')