soulmine
V2EX  ›  问与答

求推荐 Python 第三方包

  •  
  •   soulmine · Oct 14, 2017 · 2427 views
    This topic created in 3134 days ago, the information mentioned may be changed or developed.
    就是类似 go 的 goquery 那种可以直接通过 chrome F12 工具 copy 下来的 css 选择器来解析页面数据的那种
    BS4 感觉很麻烦 pyquery 也不行 www
    1 replies    2017-10-14 16:48:19 +08:00
    zgbgx1
        1
    zgbgx1  
       Oct 14, 2017
    lxml 支持 xpath,可以把 copy 下来的 xpath 来进行选择,当然 xpath 和 jquery 选择器是 类似的,你可以用 name id class 等多种选择器。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5539 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 08:26 · PVG 16:26 · LAX 01:26 · JFK 04:26
    ♥ Do have faith in what you're doing.