websocket 爬虫的疑问

2018-05-24 16:15:29 +08:00
 wjx1993

怎么建立连接发生请求? 抓包的结果: send 的数据如下: command=login uid=1203453380 encpass= roomid=63186634 command=sendmessage content=q1YqUbJSKijKLIvPzEvLV9JRSs7PK0nNA4pWK6XmJRckFhcDFSjV1gIA command=sendmessage content=y8vPLwAA command=sendmessage content=y8vPLwAA command=sendmessage content=y8vPLwAA command=sendmessage content=y8vPLwAA

3349 次点击
所在节点    Python
7 条回复
wjx1993
2018-05-24 16:54:55 +08:00
有大佬帮忙看下吗?
chinafeng
2018-05-24 16:59:02 +08:00
自己写个 WebSocket Client 不就可以了嘛?
wjx1993
2018-05-24 17:08:58 +08:00
@chinafeng 我装的 websocket-client,但是看了这个库的文档的 demo 去修改,一直报错
sheep3
2018-05-24 17:33:43 +08:00
你这爬虫写了一个月啊
sheep3
2018-05-24 17:35:04 +08:00
你用的什么编程语言语言,用的什么库,没有人知道,

你说的 send 数据,是在请求时放在 get 参数上,还是后续链接成功后发送订阅消息,也没有人知道。
wjx1993
2018-05-24 17:43:18 +08:00
@sheep3 大佬,我代码发你,有空帮我看看
wjx1993
2018-05-25 10:35:47 +08:00
@sheep3 大佬,可以加你 qq 或微信吗?这里发不了图不太好说问题😂

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/457483

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX