V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · May 24, 2018 · 4169 views
    This topic created in 2899 days ago, the information mentioned may be changed or developed.

    怎么建立连接发生请求? 抓包的结果: 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 replies    2018-05-25 10:35:47 +08:00
    wjx1993
        1
    wjx1993  
    OP
       May 24, 2018 via Android
    有大佬帮忙看下吗?
    akafeng
        2
    akafeng  
       May 24, 2018
    自己写个 WebSocket Client 不就可以了嘛?
    wjx1993
        3
    wjx1993  
    OP
       May 24, 2018 via Android
    @chinafeng 我装的 websocket-client,但是看了这个库的文档的 demo 去修改,一直报错
    sheep3
        4
    sheep3  
       May 24, 2018
    你这爬虫写了一个月啊
    sheep3
        5
    sheep3  
       May 24, 2018
    你用的什么编程语言语言,用的什么库,没有人知道,

    你说的 send 数据,是在请求时放在 get 参数上,还是后续链接成功后发送订阅消息,也没有人知道。
    wjx1993
        6
    wjx1993  
    OP
       May 24, 2018 via Android
    @sheep3 大佬,我代码发你,有空帮我看看
    wjx1993
        7
    wjx1993  
    OP
       May 25, 2018 via Android
    @sheep3 大佬,可以加你 qq 或微信吗?这里发不了图不太好说问题😂
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:19 · PVG 01:19 · LAX 10:19 · JFK 13:19
    ♥ Do have faith in what you're doing.