richieboy
V2EX  ›  Java

Java 怎么爬取 websocket

  •  
  •   richieboy · Jun 8, 2018 · 4257 views
    This topic created in 3071 days ago, the information mentioned may be changed or developed.

    爬一个网页的信息发现不是走 http 请求而是 websocket 通道 我不会啊,该怎么爬?

    2 replies  •  2018-06-08 17:42:24 +08:00
    rock_cloud
    rock_cloud
    Jun 8, 2018
    1
    尝试一下 Selenium 之类的框架吧,可以用一下 Chrome headless
    xxxy
    xxxy
    Jun 8, 2018
    2
    不加密的话直接爬啊,抓包,解析, 然后模拟 websocket 请求
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 11:09 · PVG 19:09 · LAX 03:09 · JFK 06:09
    ♥ Do have faith in what you're doing.