richieboy
V2EX  ›  Java

Java 怎么爬取 websocket

  •  
  •   richieboy · Jun 8, 2018 · 3847 views
    This topic created in 2901 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   ·   3640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 04:20 · PVG 12:20 · LAX 21:20 · JFK 00:20
    ♥ Do have faith in what you're doing.