Commit d915bf0a authored by litaolemo's avatar litaolemo

update

parent 978c0ed3
......@@ -144,12 +144,15 @@ class Crawler_xiaohongshu():
self.driver.implicitly_wait(2)
page_element = self.driver.find_element_by_xpath("//*").get_attribute("outerHTML")
print(page_element)
self.driver.get(releaserUrl)
self.driver.get("https://www.xiaohongshu.com/explore")
self.driver.implicitly_wait(2)
time.sleep(1)
page_element = self.driver.find_element_by_xpath("//*").get_attribute("outerHTML")
print(page_element)
# self.driver.refresh()
self.driver.get("https://www.xiaohongshu.com/discovery/item/5ff6c6a90000000001005806")
self.driver.implicitly_wait(2)
time.sleep(1)
page_element = self.driver.find_element_by_xpath("//*").get_attribute("outerHTML")
print(page_element)
cookie = self.driver.get_cookies()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment