Coder Social home page Coder Social logo

WebSocket will not work about wechat_spider HOT 13 OPEN

lijinma avatar lijinma commented on July 21, 2024 1
WebSocket will not work

from wechat_spider.

Comments (13)

lijinma avatar lijinma commented on July 21, 2024

看你的情况应该是没问题,有报错信息吗?有截图吗?

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

就是抓不到https,单独使用anyproxy可以抓到https

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

全局模式下npm install wechat_spider -g,python2.7.13环境,运行wechat_spider出错
/usr/local/lib/node_modules/wechat_spider/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:25
throw new Error('Please install sqlite3 package manually');
^

Error: Please install sqlite3 package manually
at new ConnectionManager (/usr/local/lib/node_modules/wechat_spider/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:25:13)
at new SqliteDialect (/usr/local/lib/node_modules/wechat_spider/node_modules/sequelize/lib/dialects/sqlite/index.js:12:28)
at new Sequelize (/usr/local/lib/node_modules/wechat_spider/node_modules/sequelize/lib/sequelize.js:233:18)
at Object. (/usr/local/lib/node_modules/wechat_spider/lib/db.js:2:17)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/wechat_spider/lib/csv.js:1:72)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

from wechat_spider.

lijinma avatar lijinma commented on July 21, 2024

两个问题问你:

  1. anyproxy 如何执行的 anyproxy -i 吗?
  2. 你证书都装过了, 对吗?

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

搞错了,不好意思,证书装了,anyproxy -i也是提示
➜ git:(master) ✗ anyproxy -i
the default rule for AnyProxy.
Anyproxy rules initialize finished, have fun!
The WebSocket will not work properly in the https intercept mode :(
GUI interface started at : http://192.168.1.205:8002/
Http proxy started at 192.168.1.205:8001

from wechat_spider.

zhulinpinyu avatar zhulinpinyu commented on July 21, 2024

我也是同样的问题 无法捕捉https的请求

from wechat_spider.

lijinma avatar lijinma commented on July 21, 2024

【问题已解决】:iOS 端证书安装设置的问题
iOS 10.3 增加了额外的配置:还需要在 设置->通用->证书信任设置 中把AnyProxy证书的开关打开
http://anyproxy.io/4.x/cn.html#ios-%3E=-10.3%E4%BF%A1%E4%BB%BBca%E8%AF%81%E4%B9%A6

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

是在设置->通用->关于本机->证书信任设置->打开AnyProxy证书吧

from wechat_spider.

lijinma avatar lijinma commented on July 21, 2024

@xl7dev 对的

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

@zhulinpinyu 后来重新安装了一下sequelize,sqlite3,spider这三个模块就可以了,不会报错

from wechat_spider.

xiongzhp avatar xiongzhp commented on July 21, 2024

@xl7dev 重新安装sequelize,sqlite3的最新版本吗?但为啥还要安装spider,-g 安装吗?

from wechat_spider.

xiongzhp avatar xiongzhp commented on July 21, 2024

我重装也是报错的

from wechat_spider.

xl7dev avatar xl7dev commented on July 21, 2024

重装之前把上面我列的三个程序目录下的文件删除掉

from wechat_spider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.