from requests_html import HTMLSession

session = HTMLSession()

headers = {
    "User-Agent":"scrapy"
}

resp =  session.get('http://www.spbeen.com/tool/request_info/',headers = headers)

ua = resp.html.xpath('.//div[@class="ui red segment"]/div[last()]')
print(ua[0].text) #获取网站的ua

 

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2021-12-27
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-09-28
  • 2021-11-07
相关资源
相似解决方案