vverr
V2EX  ›  问与答

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

  •  
  •   vverr · Feb 22, 2022 · 786 views
    This topic created in 1569 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   ·   1167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    ♥ Do have faith in what you're doing.