V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
richieboy
V2EX  ›  Java

Java 怎么爬取 websocket

  •  
  •   richieboy · Jun 8, 2018 · 3800 views
    This topic created in 2879 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   ·   6015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
    ♥ Do have faith in what you're doing.