我们提供融合门户系统招投标所需全套资料,包括融合系统介绍PPT、融合门户系统产品解决方案、
融合门户系统产品技术参数,以及对应的标书参考文件,详请联系客服。


import requests
from bs4 import BeautifulSoup
import json
url = 'https://www.engineering.edu/news'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
news_items = []
for item in soup.find_all('div', class_='news-item'):
title = item.find('h2').text
link = item.find('a')['href']
news_items.append({'title': title, 'link': link})
with open('aggregated_news.json', 'w') as f:
json.dump(news_items, f)