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

不能爬取完整的题库 #11

Closed
Justin666521 opened this issue Jun 20, 2022 · 24 comments
Closed

不能爬取完整的题库 #11

Justin666521 opened this issue Jun 20, 2022 · 24 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Justin666521
Copy link

你读取题目的程序有问题,比如我题库有100题,你这个只能读取50题,因为它读取题目的时候读一个跳一个,
例如,读第一个,不读第二个,读第三个,应该是读题目步长错了,你看看怎么修改吧,谢谢爸爸!

@notnotype
Copy link
Owner

有没有证据?

@Justin666521
Copy link
Author

有,我每次爬虫的结果就是证据

@notnotype
Copy link
Owner

你题库有多少题目,然后发一下log

@Justin666521
Copy link
Author

image
$A$HAL J~TQW7X)GB V2769
你看,正好一半,它读一个跳一个

@Justin666521
Copy link
Author

1147个题,读了573个

@notnotype
Copy link
Owner

notnotype commented Jun 20, 2022

学院id(fid/school_id)是多少

@notnotype notnotype reopened this Jun 20, 2022
@Justin666521
Copy link
Author

"fid":46514
而且好像只读偶数题

@notnotype
Copy link
Owner

是否通过手机查看题目数的?

@notnotype
Copy link
Owner

用于爬取的账号是否与用于查看题目数的账号一致?

@Justin666521
Copy link
Author

是否通过手机查看题目数的?

用手机查看的题目数

@Justin666521
Copy link
Author

用于爬取的账号是否与用于查看题目数的账号一致?

一致

@notnotype
Copy link
Owner

这个页面和你手机上看的一致?
https://exm-mayuan-ans.chaoxing.com/selftest/courses?fid=46514

@Justin666521
Copy link
Author

这个页面和你手机上看的一致? https://exm-mayuan-ans.chaoxing.com/selftest/courses?fid=46514

一致

@notnotype
Copy link
Owner

题目数是多少?

@Justin666521
Copy link
Author

image
坏了,电脑版的打开题目就成了一半了,我该怎么办才能把手机的fid查出来

@notnotype
Copy link
Owner

notnotype commented Jun 20, 2022

手机重新登录再看看题目数

@Justin666521
Copy link
Author

image
手机就是1000多道

@Justin666521
Copy link
Author

电脑就是500多,离谱了

@notnotype
Copy link
Owner

手机重新登录再看看题目数

@Justin666521
Copy link
Author

重新登录还是1000多

@notnotype
Copy link
Owner

我尝试登录一下你的手机端行吗?

@notnotype notnotype reopened this Jun 20, 2022
@Justin666521
Copy link
Author

我用Gmail发给你个账号吧

@notnotype
Copy link
Owner

notnotype commented Jun 20, 2022

经检测:自测所使用的fid(31421)与获取的学院id(46514)不一致,正确的course_id为212958051
使用正确的course_id重新运行程序即可

请输入课程id(course_id): 212958051

原因

可能本学院的自测页面使用了来自其他学院的自测

可能属于罕见现象

@notnotype notnotype added bug Something isn't working wontfix This will not be worked on labels Jun 20, 2022
@notnotype notnotype changed the title 我终于发现问题了!! 不能爬取完整的题库 Jun 20, 2022
@Justin666521
Copy link
Author

Justin666521 commented Jun 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants