提交 9c1d6997 编写于 作者: L luxin

update get_htmo_text.md

上级 42aa1cda
...@@ -94,6 +94,6 @@ def fetch_text(html): ...@@ -94,6 +94,6 @@ def fetch_text(html):
```python ```python
def fetch_text(html): def fetch_text(html):
html = etree.HTML(html) html = etree.HTML(html)
result = html.xpath("/text()") result = html.xpath("//get_text()")
return result return result
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册