# requests-html示例 使用 requests-html 提取页面https://www.baidu.com/上面的所有链接,代码如下: ```python # -*- coding: UTF-8 -*- from requests_html import HTMLSession def get_url(url): session = HTMLSession() r = session.get(url) # TODO(You): 正确的提取代码 return urls print(get_url("https://www.baidu.com/")) ``` 关于缺失代码部分,以下选项正确的是: ## 答案 ```python urls = r.html.links ``` ## 选项 ### A ```python urls = r.html.find("url") ``` ### B ```python urls = r.html.find("url")[0] ``` ### C ```python urls = r.html.urls ```