Giter Club home page Giter Club logo

techxuexi / techxuexi Goto Github PK

View Code? Open in Web Editor NEW
5.6K 233.0 2.0K 6.12 MB

强国通 科技强国 学习强国 xuexiqiangguo 全网最好用开源网页学习强国助手:TechXueXi (懒人刷分工具 自动学习)技术强国,支持答题,支持 docker 45分/天

Home Page: https://techxuexi.js.org/

License: GNU Lesser General Public License v3.0

Python 50.32% Batchfile 0.52% Dockerfile 0.33% Shell 1.92% HTML 20.80% CSS 17.65% JavaScript 8.46%
xxqg auto-xxqg docker xuexi xuexiqiangguo xuexi-qiangguo qiang-guo qiangguo

techxuexi's Introduction

前言

官方网站: https://techxuexi.js.org/

交流群地址及说明(点击查看)

重要公告公告栏(国内打不开) || 公告栏(国内可以打开)

我们随时删库跑路,请加交流群防失联。

可以点击右上角 watch 接收关于本项目的通知邮件,新版本提醒等。

本项目基于某已终止的项目,请自行搜索后前往star。我们由衷地敬佩这个领域的先锋们。
这是全网较好的成熟产品,但已停止,我们于心不忍。本仓库现由“科技强国”组织进行维护。

所有问题请到本项目这里提,不要打扰原作者。

许多IT人员本终日埋头写代码,确实有需求,与其各人重复修改编写浪费生产力不如团队合作维护, 因此我们还是希望继续维护此生态。具体请详细阅读下文

文档移动到了 https://github.com/TechXueXi/TechXueXi/wiki

TechXueXi

TechXueXi 是一款使用python语言编写的学 xi 工具。可达 45 分/天

学 xi 情景

GitHub watchers  GitHub stars  GitHub forks
请点击页面顶部靠右star与fork
GitHub issues  GitHub closed issues  GitHub pull requests  GitHub closed pull requests

GitHub release  GitHub top language  GitHub code size in bytes  GitHub repo size
GitHub License  platforms  Libraries.io dependency status for GitHub repo
GitHub commit activity  GitHub contributors

GitHub all releases   Badge

[TOC]

📃免责声明

TechXueXi为python学 xi 交流的开源非营利项目,仅作为程序员之间相互学 xi 交流之用,使用需严格遵守开源许可协议。严禁用于商业用途,禁止使用TechXueXi进行任何盈利活动。对一切非法使用所产生的后果,我们概不负责。

有疑问?

遇到问题,请试着按如下步骤解决:

  1. 仔细阅读过 README.md使用方法-更新方法-下载方式.mdDOCKER.md 这些说明
  2. 查看/搜索所有已有 issue,无论是open还是close的
  3. 通过搜索引擎搜索,尝试不同的关键词 www.google.com www.baidu.com
  4. 到提供的在线聊天室询问 (聊天室说明: #14 )
  5. 提新 issue ,关注邮箱有关这个 issue 的提醒。

👍程序特性

copy URL to clipboard

  • 全平台支持: win,macos,linux,vps,Raspbian-pi等各种平台

请使用带图形界面的环境,推荐windows。尽量使用自用电脑,
最好不要使用vps,云主机等(因为有可能被xuexi根据服务商ip查到)。
不支持xp

  • 支持每日答题,支持每周答题,支持专项答题
  • 全程后台静默学 xi : 也可开启前台学 xi 展示
  • 自动核对学 xi 分数: 根据每日分数学满为止
  • 支持保存账户信息: 可以保存帐户信息每日免去重复登陆
  • 默认多线程学 xi : 可关闭,建议开启,每日学满只需20分钟
  • 可设置自动关机: 每天下班用办公室电脑学 xi 后自动关机
  • 增强防检测:随机浏览器请求头及自然学 xi 行为模拟

右侧为手机操作vps示例

另有安卓本地运行方式,请查看issue #323 (可能无法使用)


📗使用方法 🔧更新方法 💾下载地址

详见: 使用方法-更新方法-下载方式

📑常见问题

win平台可能提示无法定位程序输入点ucrtbase.terminate于动态链接库api-ms-win-crt-runtime-|1-1-0.dll等缺失dll文件的问题而无法使用,尝试安装Visual C++ Redistributable for Visual Studio 2015

下载链接:

📕问题提交

在仔细阅读文档的前提下

  • 检查当前的issue是否有与你相关的。发布重复的issue会让双方都降低效率,搜索开放和已经关闭的issue来检查你现在提出的issue是否已经被提及。
  • 请明确你的问题:期望的输出是什么,实际发生了什么?以及其他人如何复现你的问题。
  • 对结果的链接:复现问题的方式
  • 汇报系统环境的详细信息,注明程序版本号与运行环境。
  • 如果你粘贴错误输出到一个issue中,请使用三个反引号包裹```使得显示更漂亮易读```

GitHub issues GitHub closed issues

提交issue标题示例 V2.4 win10x64 软件显示问题…

💪 代码贡献

🕔 项目计划

本项目维护计划、路线图参见(TechXueXi 开发团队成员才可以查看) https://github.com/orgs/TechXueXi/projects/2

申请加入 TechXueXi 开发团队参见下方说明 #2

如您参与贡献,请注意:维护计划、路线图中每一条未列至"Done"下时,仅可在 developing 分支改动。

如您开发了其他“科技强国”项目,也可以加入本组织,相互交流,共同维护生态。

🙋‍♂️ 加入组织

#2

📌关于学 xi 强国

个人认为,学 xi 强国本身受众就是国家的栋梁,本人不欢迎不热爱国家的人加入本项目。

学 xi 强国聚合了大量可免费阅读的期刊、古籍、公开课、歌曲、戏曲、电影、图书等资料,内容严谨,专业性强。没有博眼球,无下限的自媒体内容和虚假新闻。推荐大家自发积极学 xi 使用。TechXueXi 仅额外提供给上班上学期间工作学业繁重,抽不出时间完成学 xi 强国任务的非程序员。

“学 xi 强国”意义深远。

📝源代码

📜许可证

GitHub

我们不接受任何捐赠。

techxuexi's People

Contributors

alibaba-developer avatar azoth07 avatar dadudu-peng avatar facebook-github-bot avatar gituse4xxqg avatar googlebot avatar johlanse avatar microsoftopensource avatar moruoxian avatar npo5tech avatar quandong-zhang avatar robbiedragon233 avatar tencent-adm avatar tencent-wechat avatar yunxueyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

techxuexi's Issues

session deleted because of page crash from tab crashed。docker dev72 视频学习报异常

清单

系统版本,包含位数:win10 64

docker版本:techxuexi/techxuexi-amd64:dev72


详细描述

答:
docker 镜像版本 techxuexi/techxuexi-amd64:dev72
视频学习报错
image

容器参数

image

全部报错

答:

视频学 xi 检测到异常:Message: unknown error: session deleted because of page crash

from tab crashed

  (Session info: headless chrome=92.0.4515.159)

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

❌错误收集

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

反馈答错题

系统版本,包含位数:Win10 x64

python版本:3.9.4

软件/源码版本:V20210705

浏览器、驱动版本


详细描述

答:每日答题中的某一道题有三个答案,但是只选了两个,且在我反应过来还没点上另一个选项的时候就提交了,然后界面显示未找到答案,手动答题后按回车,大回车不管用,按数字键盘的小回车可以。但是后面专项答题的时候遇到一道题也要手动答(不是像之前一样答错),按小回车不行大回车可以。

全部报错

答:

2021-07-08 11:58:16
【多选题】
【题干】
<div>在艰苦的抗战环境中,**共产党非常注意加强自身建设。()、()、()、()等,这些论著为党员教育提供了重要教材,在党的建设中发挥了重要作用。<div style="padding-top: 14px;"><span style="color: rgb(255, 125, 0);"> 来源:《**共产党简史》 </span><span style="color: rgb(49, 62, 195);">(人民出版社、**党史出版社2021年版)</span></div></div>
【提示信息】
[]

!!!!!本题没有找到提示,暂时略过!!!!!

建议

答:如果可以修复的话当然更好啦。

Windows 版本进行每周答题时报错

系统版本,包含位数: Windows 10 64位

python版本:3.7.4

软件/源码版本:latest

浏览器、驱动版本:73.0.3683.86


详细描述

答:Windows 版本在进行每周答题时报错

全部报错

答:
image

私はChina を愛しています

建议

答:咱没有建议, 不懂 py

pushplus请求域名变化

清单

系统版本,包含位数:centos7:amd64

软件/源码版本:amd64-master52

浏览器、驱动版本:chrome90.56.2763

python版本:python3.7.1

docker版本:not_known


详细描述

答:pushplus服务请求域名变化为http://pushplus.hxtrip.com/,但代码未更新,导致一直返回token无效错误,错误代码999

全部报错

答:

私はChina を愛しています

建议

答:

收不到二维码

清单

系统版本,包含位数:CentOS Linux release 7.8.2003 (Core)

软件/源码版本:最新

浏览器、驱动版本

python版本

docker版本


详细描述

答:
收不到二维码。
已安装好学习强国最新版,设置好钉钉机器人后,只收到一条login url,点开后跳转到请下载手机客户端界面,再点击通过跳转打开苹果商店这款app,然后在商店内打开app就没了,最后docker 日志提示扫描二维码超时。

docker版专项答题卡住

@wx5223

系统版本,包含位数
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:专项答题无法完成,logs显示“闭查看提示失败!没有可点击的【查看提示】按钮”

全部报错

答:
image

建议

答:

报毒原因分析

不仅国内杀毒软件,谷歌浏览器,微软Windows defender,迈克菲,Symantec都报毒

由于我们技术水平有限,恳请在此方向有较深入研究的大佬帮忙分析一下报毒原因和可用的解决办法,谢谢

国内杀毒软件报毒应该是这个项目进了黑名单。现在项目地址已经进了国产浏览器的黑名单。

docker版本如何登入多个用户?

一个容器怎么登入两个账号? 是否有相关的配置项?

扫码登入后,他就自动开始学了,不知道该怎么登入两个账号再开始学。我是用的钉钉机器人。

目前我是通过另开一个容器,将获取到的账户信息,写入第一个容器配置文件来实现的。是否存在更便捷的方式?

Dock拉取命令不对

清单

系统版本,包含位数:win10 64位

软件/源码版本

浏览器、驱动版本

python版本

docker版本


详细描述

答:TechXueXi/DOCKER.md 文件中关于拉取的命令如下:
docker run -e "AccessToken={token}" -e "Secret={密钥}" -d --name={容器名称} techxuexi/techxuexi:{tag}
docker run -e "从Docker.md找到参数1" -e "从Docker.md找到参数2" -e "从Docker.md找到参数3" -d --name={容器名称} techxuexi/techxuexi:{tag}
下方备注:
请不要无脑照搬,需要修改

参数,输入时不输入{}

参数
tag=如果你是 amd64 的机器,那么就是 amd64,如果是 arm64 那么就是 arm64,然后后面跟版本号,例如 techxuexi/techxuexi:amd64-40 techxuexi/techxuexi:arm64-40

——————————————————————
其中tag表述不对,以备注中的写法无法获取,正确写法如下
techxuexi/techxuexi-amd64:dev53
注意短横线和冒号的位置

docker dev72版本,无法生成登录二维码

image
image

需要增加新用户,请扫码登录,否则请无视
正在打开二维码登陆界面,请稍后
检查更新
网络缓慢,请重试
当前网络缓慢...
当前网络缓慢...
二维码将发往机器人...
============================================================
当前网络缓慢...
Exception in thread 开始学xi:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/xuexi/pdlearn/threads.py", line 44, in run
    self.func(*self.args)
  File "/xuexi/pandalearning.py", line 72, in start_learn
    cookies = driver_login.login()
  File "/xuexi/pdlearn/mydriver.py", line 239, in login
    cookie_list = self.get_cookie_from_network()
  File "/xuexi/pdlearn/mydriver.py", line 169, in get_cookie_from_network
    self.sendmsg()
  File "/xuexi/pdlearn/mydriver.py", line 218, in sendmsg
    gl.pushprint(decode_img(qcbase64))
  File "/xuexi/pdlearn/mydriver.py", line 38, in decode_img
    img_b64decode = base64.b64decode(data[data.index(';base64,')+8:])
AttributeError: 'NoneType' object has no attribute 'index'

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

扫描二维码界面自动关闭,显示超时

系统版本,包含位数:windows11 64bit

python版本:3.9

软件/源码版本:20210712

浏览器、驱动版本:73.0.3683.86、73.0.3683.68


详细描述

答:扫码界面自动关闭,并报错超时

全部报错

答:

正在打开二维码登陆界面,请稍后
未检测到SendLoginQRcode配置,请手动扫描二维码登陆...
扫描二维码超时... 错误信息:'bool' object is not callable
按回车键退出程序.

建议

答:无无无

每周答题失败

清单

系统版本,包含位数:Win11 64bit 正式版

软件/源码版本:v20210816

浏览器、驱动版本

python版本

docker版本


详细描述

答:每周答题失败

全部报错

答:

============================================================
get_score 获取失败
============================================================
Traceback (most recent call last):
  File "pandalearning.py", line 98, in <module>
  File "pdlearn\answer_question.py", line 401, in weekly
    answer_question(quiz_type, cookies, scores, score_all, quiz_xpath, category_xpath, driver_default=driver_default)
  File "pdlearn\answer_question.py", line 49, in answer_question
    uid = user.get_userId(cookies)
  File "pdlearn\user.py", line 16, in get_userId
    userId, total, scores = score.get_score(cookies)
  File "pdlearn\score.py", line 51, in get_score
    dayScoreDtos = json.loads(score_json)["data"]["dayScoreDtos"]
TypeError: 'NoneType' object is not subscriptable
[45144] Failed to execute script 'pandalearning' due to unhandled exception!

建议

答:

有意愿加入本组织者,请按此说明申请

请完整阅读完全部说明再操作。

有意愿成为本组织成员者,请 发送主题“申请科技强国组织成员”的邮件至
[email protected]
邮件需要包含你的 github 用户名,请简要介绍您代码水平。如果您向本项目提交过贡献,或有类似代码开发维护经历,将优先通过审核

如果你的 github 账户绑定过国内邮箱,或者包括个人信息,请重新申请一个github账号专门提交这个项目有关的代码,绑定境外邮箱,不要用国区苹果账号的邮箱

建议用境外邮箱,不要用国区苹果账号,qq,163 的邮箱

如有意愿协助开发 TechXueXi python 新功能请在开发计划 To do 栏中选任务,在上面注明,也可直接添加任务说明

TechXueXi python 项目维护计划、路线图参见 https://github.com/orgs/TechXueXi/projects/2

如您参与贡献,请注意:维护计划、路线图中每一条未列至"Done"下时,仅可在 developing 分支改动。

现在,我们也欢迎开发了其他优秀的开源程序的作者,把仓库移动到 techxuexi 这里,多人一起维护。

有一些说明请到 https://github.com/TechXueXi/techxuexi-readme 查看,但说明不完善。加入我们后,登录可见,否则 404。

发送完成后用 telegram 向 tech_xue_xi_bot 说有邮件,可以更快收到回复。

如果没有收到邮件,但是您确认收到了加入邀请请点击这里

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

v2020712版本无法扫码二维码

系统版本,包含位数
macOS 11.4 (20F71)

python版本
python3.8.2
软件/源码版本
v20210712
浏览器、驱动版本
版本 91.0.4472.114(正式版本) (x86_64)
Starting ChromeDriver 91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462}) on port 9515

详细描述

答:安装了最新版本,登录时二维码一直没有出现,浏览器显示了页面后自动关闭了。shell里提示扫码二维码超时,错误信息附上

TechXueXi 现支持以下模式(答题时请值守电脑旁处理少部分不正常的题目):
-------------------------
0 仅登录
1 文章+视频
2 文章+视频+每日答题
(可以根据当日已得做题积分,决定是否做题)
3 文章+视频+每日答题+每周答题+专项答题
(可以根据当日已得做题积分,及是否有可得分套题,决定是否做题)
4 更改默认用户
5 查看所有用户今日得分情况
6 刷新所有用户登录状态为最新
============================================================
请选择模式(输入对应数字)并回车: 0
开启: 获取更新信息...
[*] 正在联网获取更新信息...(更新显示不会打断之前输入等操作)
未找到有效登录信息,需要登录
[*] TechXueXi最新下载地址为 https://github.com/TechXueXi/TechXueXi
[*] 程序版本为:v20210712
[*] 最新版本为:v20210712
正在打开二维码登陆界面,请稍后
未检测到SendLoginQRcode配置,请手动扫描二维码登陆...
扫描二维码超时... 错误信息:'bool' object is not callable
按回车键退出程序.```


<!--
可以粘贴图片。

许多IT人员本终日埋头写代码,对我们这类软件确实有需求,
与其各人重复修改编写浪费生产力不如团队合作维护,因此我们希望长期维护此生态。
有意愿加入本组织者,请https://techxuexi.github.io/

我们不接受任何捐赠。远离非法牟利。
-->

扫描二维码界面自动关闭,显示超时

已修复

Originally posted by @gush4 in #25 (comment)

这个问题还在啊

我是使用源码,基于节点:
commit 3998ab7 (HEAD -> dev, origin/dev, origin/HEAD)
Author: 恩格斯 [email protected]
Date: Mon Aug 2 17:11:21 2021 +0800

无答案题视频题跳过,支持发二维码信息到企业微信

操作系统:
macOS Catalina 版本:10.15.7(19H1030)

chromedriver 版本:
ChromeDriver 92.0.4515.107 (87a818b10553a07434ea9e2b6dccf3cbe7895134-refs/branch-heads/4515@{#1634})

macmini m1 提示找不到pip

输入:pip install -r requirements.txt
zsh: command not found: pip

这中情况下应该如何处理?
ps:已经安装brew了。

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

建议提供一个无人值守的全自动模式供选择

清单

系统版本,包含位数:20210605

软件/源码版本:20210605

浏览器、驱动版本

python版本:20210605

docker版本


建议

答:只是一个建议,提供一个全自动无人值守的模式,即,视频答题的话,可“自动”任意填写随机数字和字母,这样不要等待人工去答题,答错也就是少1分而已,还有选择题,如果出现无法根据提示选择答案的话,也“自动”随机选,不要等人工选。
如果没拿到满分,可再启动一次即可,可能好过人工去百度。感谢团队的辛勤劳动。

说明,因为上次提了issue,发现新版的学习时间较长,所以我对照源码修改了一下20210605版,我目前继续在用20210605版,没有什么问题。

Docker中运行答题限入死循环

清单

docker版本


详细描述

答:Docker中运行答题时,如有两个选项有部分字符相同,程序限入死循环
image

建议

答:上述情况时,让机器随机选择一项,这样可以完成答题,少几分可以接受。
另外,如果是选择题,可以先判断题目中挖空的数量和答案数量是否相同,如果相同,直接全选就可以。无需查看提示

20210705版答题时间比20210605版增加十多分钟

系统版本,包含位数:20210705

python版本:20210705

软件/源码版本:20210705

浏览器、驱动版本


详细描述

答:20210705版本答题时间比20210605答题时间多出十多分钟。主要是文章、视频学习方面。老版本十多分钟搞定,新版本需要20多分钟。

建议

答:对比一下源码,看看是否可以优化。

偶然发生刷视频文章无法成功

清单

系统版本,包含位数:0816\0830\0927

软件/源码版本:VS2019,各个库已完成安装

浏览器、驱动版本:chrome浏览器94.0.4606.71;驱动94.0.4606.61

python版本:3.9.2

docker版本


详细描述

答:刷视频和文章无法计数,答题正常,黑窗内指令下一排总是有下述报错内容

全部报错

答:

[1008/232028.395:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is

建议

答:

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

Mac 系统运行报错 !!!!!

运行命令后 python3 pandalearning.py,一直报库找不到,循环往复,一直这样

Unable to find zbar shared library
检测到你有python模块找不到,你可在搜索引擎搜索安装相关模块。
或转到上一级目录,运行:pip3 install -r requiremes.txt 或 pip install -r requirements.txt
下面为你尝试自动安装requirement.txt
如需自动安装按回车键继续...(如不需要自动尝试安装可现在关闭程序)

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: requests==2.26.0 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 1)) (2.26.0)
Requirement already satisfied: lxml==4.6.3 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 2)) (4.6.3)
Requirement already satisfied: colorama==0.4.1 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 3)) (0.4.1)
Requirement already satisfied: beautifulsoup4==4.9.3 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 4)) (4.9.3)
Requirement already satisfied: selenium==3.141.0 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 5)) (3.141.0)
Requirement already satisfied: pyhocon==0.3.58 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 6)) (0.3.58)
Requirement already satisfied: pyzbar==0.1.8 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 7)) (0.1.8)
Requirement already satisfied: pillow==8.2.0 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 8)) (8.2.0)
Requirement already satisfied: pyTelegramBotAPI==4.0.1 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 9)) (4.0.1)
Requirement already satisfied: gunicorn==20.1.0 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 10)) (20.1.0)
Requirement already satisfied: PySocks==1.7.1 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 11)) (1.7.1)
Requirement already satisfied: urllib3==1.26.7 in /usr/local/lib/python3.9/site-packages (from -r ../requirements.txt (line 12)) (1.26.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests==2.26.0->-r ../requirements.txt (line 1)) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests==2.26.0->-r ../requirements.txt (line 1)) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests==2.26.0->-r ../requirements.txt (line 1)) (2020.12.5)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.9/site-packages (from beautifulsoup4==4.9.3->-r ../requirements.txt (line 4)) (2.2.1)
Requirement already satisfied: pyparsing>=2.0.3 in /usr/local/lib/python3.9/site-packages (from pyhocon==0.3.58->-r ../requirements.txt (line 6)) (2.4.7)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.9/site-packages (from gunicorn==20.1.0->-r ../requirements.txt (line 10)) (54.2.0)

自动安装完成,请重新运行程序
按回车键退出程序......

Unable to find zbar shared library

软件版本: TechXueXi-20210927
系统: MacOS 10.15.7
运行报错 Unable to find zbar shared library,手动安装失败 pip3 instll zbar

Collecting zbar
  Using cached zbar-0.10.zip (31 kB)
Building wheels for collected packages: zbar
  Building wheel for zbar (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"'; __file__='"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-wheel-jqe8r85h
       cwd: /private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/
  Complete output (13 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'zbar' extension
  creating build
  creating build/temp.macosx-10.15-x86_64-3.9
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c decoder.c -o build/temp.macosx-10.15-x86_64-3.9/decoder.o
  In file included from decoder.c:24:
  ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
  #include <zbar.h>
           ^~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for zbar
  Running setup.py clean for zbar
Failed to build zbar
Installing collected packages: zbar
    Running setup.py install for zbar ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"'; __file__='"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-record-ubc28d9p/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zbar
         cwd: /private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/
    Complete output (13 lines):
    running install
    running build
    running build_ext
    building 'zbar' extension
    creating build
    creating build/temp.macosx-10.15-x86_64-3.9
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c decoder.c -o build/temp.macosx-10.15-x86_64-3.9/decoder.o
    In file included from decoder.c:24:
    ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
    #include <zbar.h>
             ^~~~~~~~
    1 error generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"'; __file__='"'"'/private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-install-dh9pcimh/zbar_ed9d230758144e4abeaa762a0b580d47/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sg/xh62t43n7s382j267m64p5240000gn/T/pip-record-ubc28d9p/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zbar Check the logs for full command output.

交流群(在线聊天室)地址及说明

有疑问?

遇到问题,请试着按如下步骤解决:

  1. 仔细阅读过 你要使用的仓库 的所有说明,看公告栏所有说明(地址见下方)
  2. 查看/搜索所有已有 issue,无论是 open 还是 close 的
  3. 通过搜索引擎搜索,尝试不同的关键词 www.google.com www.baidu.com
  4. 到提供的在线聊天室询问 (聊天室说明见下方)
  5. 提新 issue ,关注邮箱有关这个 issue 的提醒。

image

本聊天室仅讨论交流技术问题
本聊天室严禁讨论政治敏感话题
严禁任何有分裂**意图的人使用和讨论本项目,如港独、澳独、台独、疆独、藏独、陆独……

重要公告

公告栏(国内打不开)

公告栏(国内可以打开)

再次提醒:提问前做好冷场的心理准备

  • 也许这个问题网上搜一下,翻一下手册就知道
  • 也许别人在忙
  • 也许这个问题太简单了
  • 也许没人做过这块

交流群地址:两个交流群。

  1. telegram 群,国内正常情况打不开,但是最好用这个,强烈建议使用https://tx.me/techxuexi 请仔细阅读群里的置顶消息,否则无法在本群发消息。

给处在**大陆的**籍同志们:上面的链接是打不开的。有时候 github 也打不开。因为**大陆政府善意的使用“墙”帮你们屏蔽了。请遵守你祖国的法律法规。长城就是帮普通人挡住外网的**,最近几年外国的魔幻操作太多了。反省百年,中华五千年的文化早已先进的不是一点半点,墙挡住了吨吨的颜色革命垃圾,避免了苏联式的悲剧。**政协委员-成龙 说过,**人需要管着,自由不一定是好的。**人口众多,总会有人脑子不清醒,建墙去掉一些法论功这类反动网站,避免国内出现动乱。

考虑到有非**大陆籍的无产阶级同志也参与了这个项目,“墙”对这些在**大陆的其他国籍的同志造成了一些不便。我们按照党一贯的方针,对国际友人给予一些特殊关照,如果您是暂时在**大陆生活的其他国籍的同志,比如朝鲜同志,越南共产党人,非洲兄弟,而且愿意参与这个项目,可以 查看 https://github.com/techxuexi21/to-non-Chinese-comrades

  1. 现在 telegram 的群消息会发到这个群,但是这个群的消息不会发到 telegram,现在国内打得开,大部分地区打得开,特殊地区和**移动墙中墙可能打不开,以后可能国内也打不开:

https://gitter.im/TechXueXi-Official/community

截图请使用系统截图工具截屏之后粘贴到编辑框

别在 gitter 这里私聊 techxuexi21 ,是机器人账号。

另外别再建议创建微信qq群了,我们官方绝对不会在这些地方建群。被腾讯卖了还帮它数钱。还有,现在所有**大陆的群,群主对群里所有人的所有发言负责。

docker版登录卡住

系统版本,包含位数
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

Client: Docker Engine - Community
Version: 20.10.6
API version: 1.41
Go version: go1.13.15
Git commit: 370c289
Built: Fri Apr 9 22:46:45 2021
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.6
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 8728dd2
Built: Fri Apr 9 22:44:56 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
python版本
Python 3.7.3
软件/源码版本

浏览器、驱动版本


详细描述

答:docker版用老的代码可以正常运行,虽然会卡专项答题;新的代码,发送url到钉钉后,也点击登录了,但是并没有往下走;稍后的超时重新发送url也会报错

全部报错

答:

私はChina を愛しています

image

建议

答:

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

Dockerfile 问题建议

清单

系统版本,包含位数

软件/源码版本

浏览器、驱动版本

python版本

docker版本


详细描述

答:

全部报错

答:

我看dev57的镜像里,chrome依然是92版本的,并没有降级成75呀,Dockerfile好像不匹配吧
root@d2854a137e80:/xuexi# google-chrome -version
Google Chrome 92.0.4515.159

建议

答:
1、这个Dockerfile我测过是可以build过的,参考https://hub.docker.com/r/justinribeiro/chrome-headless/dockerfile/
FROM python:3.7-slim
ARG usebranche="dev"
ENV pullbranche=${usebranche}
RUN apt-get update
RUN apt-get install -y wget unzip libzbar0 git cron libglib2.0-0 libnss3-tools apt-transport-https ca-certificates curl gnupg --no-install-recommends
RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
RUN apt-get update
RUN apt-get install -y google-chrome-stable fontconfig fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-symbola fonts-noto fonts-freefont-ttf --no-install-recommends
RUN apt-get purge --auto-remove -y curl gnupg
RUN rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Shanghai
ENV AccessToken=
ENV Secret=
ENV Nohead=True
ENV Pushmode=1
ENV islooplogin=False
ENV Sourcepath="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
ENV CRONTIME="30 9 * * *"

COPY requirements.txt /xuexi/requirements.txt
COPY run.sh /xuexi/run.sh
COPY start.sh /xuexi/start.sh
RUN pip install -r /xuexi/requirements.txt
RUN cd /xuexi/; apt-get -fy install; google-chrome --version
RUN cd /xuexi/; wget https://chromedriver.storage.googleapis.com/94.0.4606.61/chromedriver_linux64.zip; unzip chromedriver_linux64.zip; chmod 755 chromedriver; ls -la; ./chromedriver --version

WORKDIR /xuexi
RUN chmod +x ./run.sh
RUN chmod +x ./start.sh
RUN mkdir code
WORKDIR /xuexi/code
RUN git clone -b ${pullbranche} ${Sourcepath}
WORKDIR /xuexi
ENTRYPOINT ["/bin/bash", "./start.sh"]

2、chrome在docker里crash的问题可能和这个有关,我暂时这样改了没有再出现crash的现象
https://stackoverflow.com/questions/30210362/how-to-increase-the-size-of-the-dev-shm-in-docker-container

钉钉收到的网址未经解码

清单

系统版本,包含位数:CentOS 7.6

软件/源码版本: techxuexi/techxuexi-amd64:dev57

浏览器、驱动版本:docker无浏览器

python版本

docker版本:Docker version 20.10.9, build c2ea9bc


详细描述

答:配置的钉钉消息,接收到的网址不是解码之后的,需要手动解码

docker build时报错

清单

系统版本,包含位数
CentOS 7.4 x86_64
软件/源码版本
dev分支
commit: 60650b3
浏览器、驱动版本

python版本
python3.6.8
docker版本
docker 20.10.8

详细描述

答:进行docker build时报错,镜像中libglib-2.0.so.0,libnss3.so找不到

全部报错

答:
1)
ESC[91m./chromedriver: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
ESC[0mThe command '/bin/sh -c cd /xuexi/; wget -O chromedriver_linux64_75.0.3770.140.zip http://npm.taobao.org/mirrors/chromedriver/75.0.3770.140/chromedriver_linux64.zip; unzip chromedriver_linux64_75.0.3770.140.zip; chmod 755 chromedriver; ls -la; ./chromedriver --version' returned a non-zero code: 127

2)
./chromedriver: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

建议

答:Dockerfile中增加
apt-get install libglib2.0-0
apt-get install ibnss3-tools

SendLoginQRcode配置

今天突然出现一个错误,找不到SendLoginQRCode配置,请手动扫码,之前没出现过,是什么情况

tg bot 希望能参考一下青龙面板的设置方式添加代理功能。

## 3. Telegram 
## 下方填写自己申请@BotFather的Token,如10xxx4:AAFcqxxxxgER5uw
export TG_BOT_TOKEN=""
## 下方填写 @getuseridbot 中获取到的纯数字ID
export TG_USER_ID=""
## Telegram 代理IP(选填)
## 下方填写代理IP地址,代理类型为 http,比如您代理是 http://127.0.0.1:1080,则填写 "127.0.0.1"
## 如需使用,请自行解除下一行的注释
export TG_PROXY_HOST=""
## Telegram 代理端口(选填)
## 下方填写代理端口号,代理类型为 http,比如您代理是 http://127.0.0.1:1080,则填写 "1080"
## 如需使用,请自行解除下一行的注释
export TG_PROXY_PORT=""
## Telegram 代理的认证参数(选填)
export TG_PROXY_AUTH=""
## Telegram api自建反向代理地址(选填)
## 教程:https://www.hostloc.com/thread-805441-1-1.html
## 如反向代理地址 http://aaa.bbb.ccc 则填写 aaa.bbb.ccc
## 如需使用,请赋值代理地址链接,并自行解除下一行的注释
export TG_API_HOST=""

占位

系统版本,包含位数

python版本

软件/源码版本

浏览器、驱动版本


详细描述

答:

全部报错

答:

私はChina を愛しています

建议

答:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.