Vagex Robot

2014 年 1 月 9 日
 horsley
https://gist.github.com/horsley/a9f4e3e35dbb8b2c1100
17287 次点击
所在节点    分享创造
103 条回复
oyoy
2014 年 1 月 20 日
[2014/01/19 20:20:44.751027] Let's sleep for 45 seconds
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead in /root/VagexCheater.AllInOne.php on line 407
[2014/01/19 20:21:29.752460] Wake up, report processed
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead in /root/VagexCheater.AllInOne.php on line 407
[2014/01/19 20:21:29.752573] report_processed start
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead in /root/VagexCheater.AllInOne.php on line 407
[2014/01/19 20:21:30.595646] Earnt: 1
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead in /root/VagexCheater.AllInOne.php on line 407
[2014/01/19 20:21:30.595725] Deal with item:["5",["r3wk-VL4Ux4","30","2092542","0","0"]]
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead in /root/VagexCheater.AllInOne.php on line 407
[2014/01/19 20:21:30.595775] Let's sleep for 46 seconds

请问楼主,这是哪里不正常啊?求解
horsley
2014 年 1 月 20 日
@oyoy 新版本的php没有显式设置时区会触发warning 在开头加一句date_default_timezone_set('Asia/Shanghai'); 就好了吧
oyoy
2014 年 1 月 20 日
@horsley 成功解决了,谢谢哇!
jacy
2014 年 1 月 20 日
@horsley 你的搭建的video_info.php经常fetch error,于是我自己搭建了个,但是发现有问题,报数组错误,发现是正则没匹配到,于是乎match[1]就不存在了,然后看了下访问ytb的结果,显示400. That’s an error. 把错误信息屏蔽了,可以正常获取vagex点数,但是现在video_info不管id是什么返回的信息都是一样的,不知道会不会被vagex发现。
oyoy
2014 年 1 月 21 日
@horsley 这个脚本只用了一天,就再也不出分了额~~
[2014/01/21 11:06:39.074088] Let's sleep for 46 seconds
[2014/01/21 11:07:25.074196] Wake up, report processed
[2014/01/21 11:07:25.074297] report_processed start
[2014/01/21 11:07:25.627013] Deal with item:["1",["EVcS2EzpXPw","30","2085574","0","0"]]
laomo
2014 年 1 月 21 日
@oyoy
@horsley

好像确实是从昨天开始不出分了,昨天只有516,然后就没有了,到今天一直没出
horsley
2014 年 1 月 22 日
@laomo
@oyoy
额,这我就不知道了,不包技术支持,我已经很久不玩了
一般来说注意这么几个位置
第一就是插件的更新,如果插件没更新那么他的协议应该是没办法更新了
但是即便插件有更新也不代表协议更新了,之前1.4.6到现在这个版本(不知道版本号),就是插件更新了但协议没更新,一般有向下兼容考虑除非问题太大强制客户端升级

第二点它内部是个黑箱子是怎么样大家都不清楚,之前也是那样的,例如一个视频规定看30s,你sleep29就提交肯定是不得分,但是31再提交还是不得分,不知道别的地方有什么限制,我源代码里面的很多奇奇怪怪的随机值很多是根据多次测量取得经验值范围,不一定到处适用。(例如可以根据youtube_info里面的速度值算下你带宽什么的再算你提交的有效的最短时间阈值,也可能太多人用robot我官方发现不妥把阈值调高之类的)

第三,想不到了,我只是把一个我不玩的玩具丢出来了,开源嘛,大家自己折腾修修补补,我提供的是一个思路和一种实现,虽然我知道有很多人直接拿去用了没感谢就算了帖子也不顶一下,但是好像没有但是了
yy1984
2014 年 1 月 22 日
非常感谢分享,已经开始跑了,挂了3个VPS,都是低价的,希望能回本吧
a7898585
2014 年 1 月 23 日
php /root/VagexCheater.AllInOne.php
提示
PHP Parse error: syntax error, unexpected ')' in /root/VagexCheater.AllInOne.php on line 299
sxbxjhwm
2014 年 1 月 23 日
表示这几天出分正常啊,我把 china_mode 部署到本地了
horsley
2014 年 1 月 24 日
@a7898585 你自己改出来什么语法错误之类的还好意思直接贴上来问? 你拷到本地的东西 语法错误 光是讲个行号没用啊 你改了什么你自己清楚
a7898585
2014 年 1 月 24 日
@horsley 只改了id号以及proxy啊,其他的都没动,299行还是你的原文里贴出来的299行
a7898585
2014 年 1 月 24 日
@horsley 我自己再看看吧,还是谢谢你的分享
laomo
2014 年 1 月 24 日
@sxbxjhwm 分享下地址?
wzxjohn
2014 年 1 月 25 日
这几天失效了。。。好像是楼主的服务器出 问题了?可是我改成 自己的好像还是不行。。。
sxbxjhwm
2014 年 1 月 27 日
@laomo 表示我有一台也不正常了。原先是两台,时间长了要求等待的时间超过 180s 就出问题了。另外一台是一开始就让你等 180+
sxbxjhwm
2014 年 1 月 27 日
[2014/01/27 14:39:14.618282] Let's sleep for 46 seconds
[2014/01/27 14:40:00.618614] Wake up, report processed
[2014/01/27 14:40:00.618741] report_processed start
[2014/01/27 14:40:01.125176] Deal with item:["5",["Iu5JJ65GWIs","300","2118655","1","0"]]
[2014/01/27 14:40:01.125285] Let's sleep for 315 seconds

类似这样就不出分了
tammy
2014 年 1 月 31 日
[2014/01/31 23:22:40.196979] fail update video array, sleep 120 seconds
[2014/01/31 23:24:40.197121] A new loop of a video array start
[2014/01/31 23:24:40.197178] Requesting new Show Array.
[2014/01/31 23:24:40.197419] Cut Show Array Failed
[2014/01/31 23:24:40.197442] fail update video array, sleep 120 seconds
总是出现这个
bingu
2014 年 1 月 31 日
自己搭建video_info吧,貌似代码里的video_info.php挂了。
3 ip一天也就4300点左右啊。
sxbxjhwm
2014 年 2 月 2 日
@bingu
2014-01-31 4485
2014-01-30 5096
2014-01-29 4704
2014-01-28 5301
2014-01-27 5128
2014-01-26 4080

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/96351

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX