From a0f83571ae12877d29d8528a0acd05be61bcfa5c Mon Sep 17 00:00:00 2001 From: litaolemo <593516104@qq.com> Date: Thu, 7 Jan 2021 13:50:04 +0800 Subject: [PATCH] update --- crawler_sys/site_crawler/crawler_xiaohongshu.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crawler_sys/site_crawler/crawler_xiaohongshu.py b/crawler_sys/site_crawler/crawler_xiaohongshu.py index 1dbd468..78198f1 100644 --- a/crawler_sys/site_crawler/crawler_xiaohongshu.py +++ b/crawler_sys/site_crawler/crawler_xiaohongshu.py @@ -138,9 +138,8 @@ class Crawler_xiaohongshu(): self.driver.refresh() - page_element = self.driver.find_elements_by_xpath("/*") - for tag in page_element: # é历出所有内容 - print(tag.text) # 把所有的文本打å°å‡ºæ¥ + page_element = self.driver.find_element_by_xpath("//*").get_attribute("outerHTML") + print(page_element) cookie = self.driver.get_cookies() # print(self.driver.get_log("performance")) -- 2.18.0