admin 发表于 2024-8-24 17:15:10

Pay for someone to write a Python 3 function that returns its HTML from a URL.

```python
import requests
def get_html(url):
    response = requests.get(url)
    if response.status_code == 200:
      return response.text
    else:
      return None
# 测试用例
url = 'https://www.sehuatang.org/forum-2-1.html'
print(get_html(url))
```
页: [1]
查看完整版本: Pay for someone to write a Python 3 function that returns its HTML from a URL.