-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we support UOS with puppeteer? #127
Comments
It seems not to work on my account (can not log in via web) with the following modifications: @luvletter2333 Please feel free to join us if you are interested. :-) |
I am willing to help but I have no idea about typescript and its HTTP library... |
This patch is still working, I checked it just before |
This patch should be applied to the third step of login. When you get a 200 from When requesting |
Hi @luvletter2333 ! Thank you very much for your reply, and it's great to know that the patch is still working!
Cloud you explain how to get a response contain I tried in the chrome browser and it seems that the Could you please share a minimum code to reproduce it in Python code, or CURL if possible? Appreciate it! |
I'm sorry to reply so late. You could follow this repo to try adding custom Headers. Then you may login Wechat Web like UOS. |
About the analysis of the protocol of Wechat Web, you could check this blog https://blog.csdn.net/zhangmiaoping23/article/details/78733231 |
Thank you so much for the detailed explanation! I'll try Firefox to reproduce it later, and I believe it will not be hard to enable it in Puppeteer because we can study from the Firefox ModHeader plugin. |
不知道是不是 redirect_uri 的关系?使用 988dd56 依然不能绕开登录限制 |
@artxia If you want to help, I'd like to suggest that you follow this repo https://github.com/BlueSky-07/wechat-token and make everything work with the browser plugin as the repo mentioned. After you can reproduce the login successfully with the browser plugin, then I believe we will be easily to copy the setting from the browser plugin to the puppeteer configurations. |
https://github.com/adamyi/wechrome |
Awesome, it looks great! Would you like to send a PR to configure our puppeteer by following the setting from this plugin? This improvement will be an epic milestone for our Web Protocol since 2017! |
I am very sorry, my code programming skills are not enough for PR. Also, the above browser plugin may require adding an address "https://wx2.qq.com/*" to "wechatUrls". |
This is an exciting news |
According to puppeteer/puppeteer#659 and Stackoverflow: No, google-chrome in headless mode doesn't support extensions yet., we can not use https://github.com/adamyi/wechrome directly with the puppeteer. Need to move the logic to native puppeteer implementation. |
我本地测试了一个最简化的代码,发现
|
是这样的( |
@gengchen528 Thank you very much for your feedback and minimum reproducible code, it will be a great help and I'll definitely try it today and hope we can integrate it into our puppet soon! |
官方答复: > Wechaty 也是有免费方案的,比如这里的基本上都是免费的: https://wechaty.js.org/docs/puppet-providers/ 包括网页版 WeChat, Whatsapp, 飞书,Gitter 等等 > 网页版有一部分无法登陆的账号,也有希望通过 wechaty/puppet-wechat#127 很快 Fix 掉,这样的话就任何微信账号都可以用免费版本 Wechaty 了
Thanks to @gengchen528 for adding UOS support for our Wechaty Puppet WeChat! The PR has been tested by myself and it works like a charm, I have merged it as This is a HUGE improvement for our Wechaty ecosystem because this fix lets most of the users can get started with Wechaty more easily. I'd like to invite @gengchen528 to write a blog post for announcing this great improvement, it would be great if we have it soon and I'm looking forward to reading it! |
非常荣幸能够写这篇博客,感谢 @artxia 提供的chrom插件给了我思路。希望这种方式能够一直可用 |
Close this issue because it has been implemented perfectly. Thanks to @luvletter2333 for letting me know UOS by your Python PR, @artxia for linking to the chrome extension to make everything clear, @gengchen528 for creating the PR for our puppet system! |
Thanks you guys to have made such tremendous breakthrough. Truly a milestone in WX bot history. @gengchen528 your blog post is spreading like a wildfire in WX bot community, 😄😄 One question,
Currently, the whole world is using a fixed @luvletter2333 / @gengchen528, do you think it'd be a problem, if the whole world is using the same fixed |
Thanks for pointing this out! I'd also have this question and I believe it should not use the same extspam value for every users. |
目前看来同一个extspam不会有太大问题,但是后期没法保证。如果如果把wechat-token集成进puppet或者让用户自行生成的话,会不会增加使用门槛,而且我看使用wechat-token是需要安装docker环境的 我在想是否能够由我们提前生成一批extspam,在启动的时候随机使用其中一个呢 这只是我目前个人的建议 |
I think that's the best solution so far, I was thinking that too. |
I think we can build a token server.When user start puppet,the puppet call token api and get an extspam token. |
我可以正常登录 UOS 微信,但是无法通过 wechaty 登陆。 扫码后手机微信提示“当前账号无法使用该服务”。 |
It's too late for me to read this issue at this moment, my question is how to generate personal extspam that associated with each person's profile? In case that it is detected by wechat and may block it someday? |
According to this Pull Request to ItChat created by @luvletter2333, it seems we can improve our puppeteer version as well.
UOS
I believe the most important is the headers.
To be investigated.
The text was updated successfully, but these errors were encountered: