richieboy
V2EX  ›  Java

Java 怎么爬取 websocket

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

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

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