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

想问下自动分析网页,获取 xpath 有什么好的方案吗?

  •  
  •   polarpy · Jan 26, 2021 · 1882 views
    This topic created in 1922 days ago, the information mentioned may be changed or developed.

    苦思冥想没有想出好方案

    4 replies    2021-01-27 19:29:21 +08:00
    ThisQ
        1
    ThisQ  
       Jan 26, 2021
    可能要从 分析网页结构开始。
    monsterxx03
        2
    monsterxx03  
       Jan 26, 2021
    chrome 里右键 inspect, 在 console 上对应元素上再右键 Copy -> Copy XPath
    polarpy
        3
    polarpy  
    OP
       Jan 27, 2021
    @monsterxx03 这就不是自动分析了
    rickwise
        4
    rickwise  
       Jan 27, 2021
    you can try this site: https://selectorgadget.com/
    Chrome add-in is going to help.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   762 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.