酷代码 AI
菜单
全部AI  /  热门  /  AI写代码神器
服务商

写一段python爬取网页的代码

```python import requests from bs4 import BeautifulSoup url = 'https://www.example.com' response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') print(soup.prettify()) ``` [2024-06-21 17:48:30 | AI写代码神器 | 66点数解答]

相关提问