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

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

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

    页面的内容是 js 生成的

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