The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
Wangds

用 go 写爬虫需要解析动态页面,有什么方案吗?

  •  
  •   Wangds · Dec 9, 2020 · 3371 views
    This topic created in 2159 days ago, the information mentioned may be changed or developed.

    页面的内容是 js 生成的

    7 replies  •  2020-12-13 21:52:21 +08:00
    tobb
    tobb
    Dec 9, 2020
    1
    翻译 js 函数到 go 吧
    dreasky
    dreasky
    Dec 9, 2020
    2
    chromedp 简单粗暴
    BoarBoar
    BoarBoar
    Dec 9, 2020
    3
    goquery,语法和古老的 jquery 基本一致
    Wangds
    Wangds
    OP
    Dec 11, 2020
    5
    @tikazyq 你好,看了 rod,感觉挺不错的,用什么方法获取整个页面的 html 呢?在文档找了好几圈,没找到
    hmoe
    hmoe
    Dec 11, 2020
    6
    @Wangds page.MustElement("html").HTML()
    longfei210
    longfei210
    Dec 13, 2020
    7
    colly
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1667 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 90ms · UTC 08:19 · PVG 16:19 · LAX 00:19 · JFK 03:19
    ♥ Do have faith in what you're doing.