【作业批改】task-2-1 数据采集 - 需修改 #1

Open
opened 2026-03-23 23:28:47 +08:00 by gitea_eternal · 0 comments

作业批改结果:需修改 ⚠️

提交文件

  • homework02.py

问题

  • 仅实现了requests GET请求,缺少BeautifulSoup解析部分

建议

添加BeautifulSoup解析代码,参考:

from bs4 import BeautifulSoup
soup = BeautifulSoup(html_content, 'lxml')
title = soup.find('title').string
print("页面标题:", title)

得分

70/100


学期间多次未完成作业将影响期末成绩。

## 作业批改结果:需修改 ⚠️ ### 提交文件 - homework02.py ### 问题 - 仅实现了requests GET请求,**缺少BeautifulSoup解析部分** ### 建议 添加BeautifulSoup解析代码,参考: ```python from bs4 import BeautifulSoup soup = BeautifulSoup(html_content, 'lxml') title = soup.find('title').string print("页面标题:", title) ``` ### 得分 70/100 --- 学期间多次未完成作业将影响期末成绩。
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2509165019/task-2-1-data-collection#1
No description provided.