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

请问为什么用手机腾讯网而不是qzone.qq.com/‎ #2

Open
ghost opened this issue Jan 17, 2014 · 3 comments
Open

请问为什么用手机腾讯网而不是qzone.qq.com/‎ #2

ghost opened this issue Jan 17, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 17, 2014

rt

@atupal
Copy link
Owner

atupal commented Jan 17, 2014

因为 手机qq空间更容易 解析 和 模拟登陆(电脑版的模拟登陆 参考 我的另一个repo: webqq), 登陆后的书签(sid)可以使用一个月以上。 -_-#, 而且 android 手机 qq 自带的空间 也是用的 这个, 有大量现成的 api。 :). 现在有很多功能可以开发都没开发。。没时间啊。。:-(

@ghost
Copy link
Author

ghost commented Jan 20, 2014

恩,我一直奇怪为什么你_login函数中的字典data为什么不含sid字段?sid的功能是什么?还想请问一下:你代码里Dianzan类属性repeat_set的功能是什么,如果删去行不行?多谢哈 ~~

@atupal
Copy link
Owner

atupal commented Jan 20, 2014

  1. sid 是querystring 中的(就是get请求中的参数, 也就是 url中 ? 后的那一串), 我的理解是 为了兼容更多的移动设备, 像3gqq空间和 移动版的 微博 都是 用sid之类的而不是 cookie 来认证的(那种wap 网页保存书签其实就是把这个带 sid 的 url 保存下来, 通过这个来认证, 安全性比较蒻...有一个过期的时间, 3gqq的好像是一个月) . -_-#. sid 是在你登录成功后返回的 url, sid 就包含在这个url里 有了这个url,您就可以查看你的空间的各种动态,进行各种操作了, 类似一个session,不过不是.
  2. repeateset 的作用是把已点赞过的说说放到一个 set里,防止重复点赞 (重复点击就是取消赞了...)

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

1 participant