import html
import etree
selector = etree.HTML(res)
url_h2 = selector.xpath("//a[@_stat='video:poster_v']/../h2")[0]
url_div = selector.xpath("//a[@_stat='video:poster_v']/../div")[0]
url_h2 = etree.tostring(url_h2).decode()
url_div = etree.tostring(url_div).decode()
print("******", url, url_img, html.unescape(url_h2), html.unescape(url_div))

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2018-03-05
  • 2021-11-23
  • 2021-11-06
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2022-01-02
  • 2022-02-11
  • 2022-12-23
  • 2021-10-19
  • 2021-09-03
相关资源
相似解决方案