51isoft / bnuoj

BNU Online Judge
GNU General Public License v3.0
94 stars 31 forks source link

CF抓题部分出现问题了~~建议更新下 #18

Open ghost opened 8 years ago

ghost commented 8 years ago

pcrawlers.php文件应该更新下~ codeforces旧的面板样例部分叫Sample test(s),旧的抓取规则已经失效了,导致抓题没有样例。 if (preg_match("/Sample test\\(s\\)<\\/div>(.*<\\/div><\\/div>)<\\/div>/sU", $content,$matches)) 现在新的样例部分叫Examples, 要改成 if (preg_match("/Examples<\\/div>(.*<\\/div><\\/div>)<\\/div>/sU", $content,$matches)) 才能正常抓题。 找了好久才发现这里出问题了,cf更新的太突然。。

quyunhua commented 8 years ago

codechef的抓题和评测一直有问题哦

quyunhua commented 8 years ago

codechef抓题一直为空,评测一直是judge error

ghost commented 8 years ago

还有就是现在抓CF的题目会不停的往下抓,ABCDEFGHIJ...不能判断这个contest有多少题目,还要自己写个判断才能中止.

quyunhua commented 8 years ago

codechef的抓题和评测请更新一下好吗?均不能正常工作啊

crccw commented 8 years ago

@car1stedt 确实没有判断,从A开始爬到题目不存在为止