V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dtgxx
V2EX  ›  问与答

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

  •  
  •   dtgxx · Feb 22, 2022 · 727 views
    This topic created in 1539 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   ·   2579 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 16:07 · PVG 00:07 · LAX 09:07 · JFK 12:07
    ♥ Do have faith in what you're doing.