vverr
V2EX  ›  问与答

playwright 咋获取标签里面的地址链接呢

  •  
  •   vverr · Feb 22, 2022 · 878 views
    This topic created in 1628 days ago, the information mentioned may be changed or developed.
    items = h_items.query_selector_all('.title')
    页面上很多 class="title"的,我想获取 class="title" 下面 div 里面 a 标签的 href 值,该怎么操作呢?看了官方文档,都是英文的翻译了也没找到。。大神们帮帮忙~~~
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1184 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
    ♥ Do have faith in what you're doing.