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

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

Open
ghost opened this issue Jul 7, 2016 · 5 comments
Open

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

ghost opened this issue Jul 7, 2016 · 5 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jul 7, 2016

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
Copy link

quyunhua commented Jul 7, 2016

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

@quyunhua
Copy link

quyunhua commented Jul 7, 2016

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

@ghost
Copy link
Author

ghost commented Jul 8, 2016

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

@quyunhua
Copy link

quyunhua commented Jul 8, 2016

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

@crccw
Copy link
Collaborator

crccw commented Jul 20, 2016

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

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

2 participants