不谢哈哈哈哈哈
python吧
全部回复
仅看楼主
level 4
爱姆姆😜 楼主
import requests
from bs4 import BeautifulSoup
url = 'http://example.com'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
title = soup.find('title').get_text()
first_paragraph = soup.find('p').get_text()
print(title)
print(first_paragraph)
2023年01月27日 21点01分 1
level 12
[乖]
2023年01月28日 01点01分 2
level 1
为什么不谢
2023年10月23日 00点10分 3
level 1
结果又过了四年了你还恐吗
2026年05月13日 12点05分 4
1