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

from selenium.webdriver.chrome.options import  Options
options = Options()
options.add_argument('--headless')


browser = webdriver.Chrome(options=options)

browser.get("https://www.cnblogs.com/brady-wang/")

content = browser.page_source

html = etree.HTML(content)
title = html.xpath('//*[@]/text()')
print(title)
browser.close()

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-12-12
  • 2021-05-16
  • 2022-01-02
  • 2021-10-03
  • 2021-04-18
猜你喜欢
  • 2021-07-09
  • 2021-09-27
  • 2022-01-20
  • 2021-12-29
  • 2021-10-05
  • 2021-08-07
相关资源
相似解决方案