*代码 http://code.google.com/p/kaixinparking/
*参考 phoenix520(http://shamrock.iteye.com/) 停车代码*
----
这个程序用是开心网争车位的外挂,完全模拟IE操作。
主程序下载
运行该程序前,需要名字为match.yaml的配置文件,文件内容说明如下:
配置文件和前段时间那个拉力赛的消耗加油机兼容
logins:
- email: sfei1@gmail.com
password: xxxxxx
prefer: 2|5232408
nonprefer: 1
force: 0
- email: sfei2@gmail.com
password: xxxxxx
prefer: 2|5232408
nonprefer: 1
force: 0
# force
# 1: not allowed to park the cars to non-prefered friends
# 0: Non-prefered friends park ares can be used as a bkup
*所有行以空格对齐*
对于下面uid的解释和获得方法:
uid是开心网对用户的编号,类似于qq号
用鼠标指向浏览器里的停车好友列表里的好友上,就可以看到浏览器的状态栏里有这样的信息:
javascript:gotouser(1245084);
那么好友的ID就是1245084 (本人开心网ID)
或者鼠标放在好友主页的头像上,也可以得到
每一段里是一个账号
pefer的意思是说你比较想停车的好友的开心uid(注:如果程序运行时该id家里车位满了,则该uid此次无效),一般是几个数字,1,2表示邻居,没有邻居请不要保留1和2。设置之后,程序优先考虑这些好友的车位。
多个开心id请用竖线“|”隔开
nonprefer的意思你不想停车的好友的开心uid。和force字段配合。
force为0,就是如果没有车位,就停在nonprefer的位置。force为1,打死也不停在nonprefer的好友的车位
prefer, nonprefer字段根据需要设置,如果没有这样的要求,该行可以删除:
logins:
- email: sfei2@gmail.com
password: xxxxxx
- email: sfei1@gmail.com
password: xxxxxx
# force
# 1: not allowed to park the cars to non-prefered friends
# 0: Non-prefered friends park ares can be used as a bkup