V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wjx1993
V2EX  ›  Python

websocket 爬虫的疑问

  •  
  •   wjx1993 · 2018-05-24 16:15:29 +08:00 · 3339 次点击
    这是一个创建于 2158 天前的主题,其中的信息可能已经有所发展或是发生改变。

    怎么建立连接发生请求? 抓包的结果: 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

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

    你说的 send 数据,是在请求时放在 get 参数上,还是后续链接成功后发送订阅消息,也没有人知道。
    wjx1993
        6
    wjx1993  
    OP
       2018-05-24 17:43:18 +08:00 via Android
    @sheep3 大佬,我代码发你,有空帮我看看
    wjx1993
        7
    wjx1993  
    OP
       2018-05-25 10:35:47 +08:00 via Android
    @sheep3 大佬,可以加你 qq 或微信吗?这里发不了图不太好说问题😂
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2665 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:37 · PVG 23:37 · LAX 08:37 · JFK 11:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.