From 42aa1cda3a2cdeab0c66e2b539fb1eb45d537d76 Mon Sep 17 00:00:00 2001 From: feilong Date: Fri, 14 Jan 2022 17:41:39 +0800 Subject: [PATCH] update python --- .../4.lxml/get_html_text.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.md" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.md" index db21bce..af49403 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.md" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_text.md" @@ -85,7 +85,7 @@ def fetch_text(html): ```python def fetch_text(html): html = etree.HTML(html) - result = html.xpath("//text") + result = html.xpath(".//text") return result ``` -- GitLab