dtgxx
V2EX  ›  问与答

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

  •  
  •   dtgxx · Feb 22, 2022 · 724 views
    This topic created in 1538 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   ·   1037 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
    ♥ Do have faith in what you're doing.