#!encoding=utf-8
from lxml import etree
from selenium import webdriver

from selenium.webdriver.chrome.options import Options

options = Options()
No_Image_loading = {"profile.managed_default_content_settings.images": 2}
options.add_experimental_option("prefs", No_Image_loading)

browser = webdriver.Chrome(options=options)
browser.get("http://www.taobao.com")
content = browser.page_source

html = etree.HTML(content)
title = html.xpath('//div[@class="ui blue segment"]/div[2]/text()')
print(title)

  

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-07-30
  • 2021-05-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-07-11
  • 2021-11-06
  • 2021-10-19
相关资源
相似解决方案