from requests_html import HTMLSession

session = HTMLSession()

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

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




pip install requests-html

 

相关文章:

  • 2021-09-02
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2021-06-10
  • 2021-09-19
  • 2022-01-29
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案