xiami_auto_checkin icon indicating copy to clipboard operation
xiami_auto_checkin copied to clipboard

Cannot successfully checkin using xiami auto checkin

Open qqldd opened this issue 11 years ago • 12 comments

不能用鸟.. First time is starting from the end of Oct. 2013. Second time is starting from the end of Dec. 2013.

qqldd avatar Nov 14 '13 08:11 qqldd

Confirmed. Just too busy these days I will fix it when I have time. Patches are also welcome.

huxuan avatar Nov 16 '13 16:11 huxuan

Tried for a while and then giving up.... I do not familiar with these things T.T

I know the reason why it does not work, xiami changed the checkin url. It is not http://xiami.com/task/signin anymore. Seems like we need to use mobile version instead: http://xiami.com/web

Now, my test account check in url is like: http://www.xiami.com/web/checkin/id/27979523

Here is a good reference that should help: https://gist.github.com/lizheming/4368496

And related article: http://imnerd.org/xiami-autosign.html

qqldd avatar Nov 19 '13 08:11 qqldd

Seems it works again?

huxuan avatar Nov 26 '13 07:11 huxuan

It works again. It should be Xiami's problem. But the log message in log file does not look good. This is another issue. Closing Issue.

qqldd avatar Nov 28 '13 04:11 qqldd

Reopen again. It cannot work after 2013-12-30

qqldd avatar Jan 20 '14 07:01 qqldd

See my fork: https://github.com/windviki/xiami_auto_checkin

windviki avatar Feb 28 '14 06:02 windviki

Should I make a pull request? My fork has gone too far away from the original implement.

windviki avatar Feb 28 '14 06:02 windviki

Hi @windviki , really thanks for your interest on this project. Actually I am too busy to maintain this repo and it doesn't work currently. I do have noticed your fork before and I really appreciate your implementation of autostart on SAE, windows and etc. But I would like to make this script clean and tiny, it should only do the checkin task without more features. Features like autostart could be a standalone script/project which import this one. What's your opinion? Wish I have explain myself clearly.

huxuan avatar Feb 28 '14 06:02 huxuan

@huxuan Thanks. And thank you for starting this useful project. I agree with you. KISS rule is great. Actually I have a new xiami.py (using urllib2) in my fork which only processes checkin task, and it could be imported from outside so that SAE can use it directly. The script xiami_auto_checkin.py in my fork is modified several times before and added some features like autostart. It could be packed into an EXE file and used easily by who does not have SAE, or other server. It's not that pure, and the new script can do all what it can do. I don't want to keep it in repo in future.

windviki avatar Feb 28 '14 07:02 windviki

Hi @windviki , Sorry for the late reply, just in cycling vocation for two days. I do have notice the xiami.py, it has a lot of difference compared with current version, but I think the failure of auto checkin in only cause by some changes in header or parameters in post, isn't it? Actually, this script is written when I begin to be fimiliar with Python and I admit that the code is a little ugly, but I don't make it larger and larger. Are you interested in modify based on the original version?

huxuan avatar Mar 02 '14 11:03 huxuan

@huxuan Maybe we could keep our separated forks. But we can communicate with each other about changes of checkin procedures so that both forks can work fine. By now, the failure is not caused by header info. We must visit main page(or other xiami pages) to get a token from cookie, then put this token into post data when login. After all this, send request for checkin task from xiami mobile page. Sometimes the encoding of response is gzip, and we need to unzip it to get text content.

windviki avatar Mar 06 '14 03:03 windviki

Looks like cannot login now.

Tried to add some print in the code, it seems login_response simply returns another html to ask you login again. Maybe need some changes for login_headers or login_data, not familiar with http stuff yet..

Can someone have a look? Thanks!

deqing avatar Nov 10 '15 00:11 deqing