Skip to content
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

使用stream无法抓包 #18

Open
imzoet opened this issue Oct 21, 2022 · 7 comments
Open

使用stream无法抓包 #18

imzoet opened this issue Oct 21, 2022 · 7 comments

Comments

@imzoet
Copy link

imzoet commented Oct 21, 2022

没有搜索到cardlist相关请求

@Hellager
Copy link
Owner

首先请确认是在 HTTPS 模式下进行抓包,具体设置根据 stream 总览 -> 设置 -> HTTPS 抓包 设置证书
其次请根据 抓包说明 使用 微博国际版,在 超话社区 界面下拉刷新,然后搜索 cardlist 请求

@imzoet
Copy link
Author

imzoet commented Oct 23, 2022

抓包成功,但是现在有两个问题:
1,使用index.py,程序没有报错,但是运行完超话并没有执行签到。
image
2,使用test_index,程序报错,和#6 一样的问题,我把三个py文件内容复制到test_index.py后,运行报错如下:
image

@Hellager
Copy link
Owner

已更新 test 功能及说明,请拉取最新版本再进行测试

@imzoet
Copy link
Author

imzoet commented Oct 24, 2022

更新最新版本后出现错误提示:
image
但是我并没有修改过,可能是微博那边的机制吧,而且今天用stream重新抓包,并未能获取cardlist相关请求:
N(A9~Q92DR7J $%YB0{Z_%P

@imzoet
Copy link
Author

imzoet commented Oct 24, 2022

我的账号好像无法登陆了......原因未知,我暂时无法验证脚本了

@Hellager
Copy link
Owner

微博轻享版 版本 5.9.5.3 IOS16 Stream 抓包没问题
先确保抓包成功,然后把这里的请求头改成你抓包拿到的请求头试试
至于账号无法登录这个问题,爱莫能助....我现在一般是手机登录,没什么问题

# supertopicsign.py line 18 ~ 24 
        self.request_headers = {
            'Accept': '*/*',
            'Host': 'api.weibo.cn',
            'Accept-Encoding': 'gzip, deflate, br',
            'User-Agent': 'WeiboOverseas/4.4.1 (iPhone; iOS 14.7.1; Scale/3.00)',
            'Accept-Language': 'zh-Hans-CN;q=1, en-CN;q=0.9',
        }

@imzoet
Copy link
Author

imzoet commented Oct 24, 2022

等我解决了账号问题再抽空试试,感谢,辛苦!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants