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

每周答题,专项答题无效 #16

Open
hithotmay opened this issue Jun 3, 2022 · 1 comment
Open

每周答题,专项答题无效 #16

hithotmay opened this issue Jun 3, 2022 · 1 comment

Comments

@hithotmay
Copy link

每周答题,专项答题有题但显示无题可答

@chenyuyou
Copy link

def weekly(cookies, scores, driver_default=None):
quiz_type = "weekly"
score_all = const.weekly_all
quiz_xpath = '//[@id="app"]/div/div[2]/div/div[3]/div[2]/div[7]/div[2]/div[2]/div'
category_xpath = '//
[@id="app"]/div/div[2]/div/div[4]/div[1]/div[1]'
answer_question(quiz_type, cookies, scores, score_all,
quiz_xpath, category_xpath, driver_default=driver_default)

def zhuanxiang(cookies, scores, driver_default=None):
quiz_type = "zhuanxiang"
score_all = const.zhuanxiang_all
quiz_xpath = '//[@id="app"]/div/div[2]/div/div[3]/div[2]/div[6]/div[2]/div[2]/div'
category_xpath = '//
[@id="app"]/div/div[2]/div/div[6]/div[1]/div[1]'
answer_question(quiz_type, cookies, scores, score_all,
quiz_xpath, category_xpath, driver_default=driver_default)

注意 div[6] div[7]两个位置变了,自己复制到SourcePackages/pdlearn/answer_question.py文件末尾进行替换。
这个需要在docker里面修改源代码,我的openwrt中,源代码的位置是
/opt/docker/overlay2/7403db62b13ee22600cbd7a05efbdbf46400aa91bc86bc24a09a4f77a88037ab/merged/xuexi/pdlearn#
可以参考下,其中一长串数字就是docker挂分区的位置。

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