cc004 / autopcr Goto Github PK
View Code? Open in Web Editor NEW自动清日常
License: GNU Affero General Public License v3.0
自动清日常
License: GNU Affero General Public License v3.0
autopcr/bsdk/validator.py
的14行,对网址http://pcrd.tencentbot.top/validate
进行post
的结果是This API has been deprecate,please use /geetest
,参照pcrjjc2的代码换成https://pcrd.tencentbot.top/geetest
,post
返回405 Method Not Allowe
,get
返回404 Not Found
。不知道是不是目标网站的失效了还是其他原因。
另外pcrjjc2看不太懂诶,按理说返回的uuid
是验证请求的序号,用来查询结果的,但它就向https://pcrd.tencentbot.top/geetest
进行get
了一下获得到的uuid
,没有附带任何数据(比如这里的就附带了包含验证码的网址),它如何知道要过哪个验证码获得的validation?
辛苦冲冲dalao看看了qwq
虽然很逆天 但是真有人账户名是中文
最近突然要验证码了,而且验证码变成点击文字,而不是三维空间点小球的,之前re_new
的那个自动过码提交请求后查询结果返回了500
,不知是验证码类型变了后端验证没变还是有其他验证(看群里看到的)
另外冲冲6.2.0的改动好大qwq尤其是将response
的update
单独提出来,用handle
修饰器处理,这从代码上来看能让各类的职责更加鲜明,但把update
单独提出来,在编写时又得回去看response
的定义,另一方面在查错(比如某些物品忘记更新)时得两个文件来回切换。(当然主要是补充了很多update,迁移代码代码比较麻烦qwq
目前使用的是21年版本sdk,可能是导致账号异常的原因之一
ERROR: Failed to import and load "hoshino.modules.autopcr.clan_iterator", error: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\clan_iterator.py", line 1, in
from autopcr.model.requests import *
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.clan_unlocker", error: No module named 'autopcr'
[2023-07-12 13:22:05,766 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\clan_unlocker.py", line 1, in
from autopcr.core import pcrclient, ApiException, sessionmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.db_test", error: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\db_test.py", line 1, in
from autopcr.db.assetmgr import instance as assetmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.httpserver_test", error: No module named 'autopcr'
[2023-07-12 13:22:05,782 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\httpserver_test.py", line 1, in
from autopcr.http_server.httpserver_test import *
ModuleNotFoundError: No module named 'autopcr'
[2023-07-12 13:22:05,813 nonebot] ERROR: Failed to import and load "hoshino.modules.autopcr.server", error: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init.py)
[2023-07-12 13:22:05,813 nonebot] ERROR: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init.py)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\plugin.py", line 419, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\HoshinoBot\hoshino\modules\autopcr\server.py", line 18, in
from hoshino.config import PUBLIC_ADDRESS
ImportError: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\HoshinoBot\hoshino\config_init.py)
[2023-07-12 13:22:05,813 nonebot] INFO: Succeeded to import and load "hoshino.modules.autopcr.util"
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
[2023-12-11 12:55:38,809 nonebot] INFO: Self: 53498118, Message ******** from ****
****@[群:********]: '#刷图推荐'
[2023-12-11 12:55:38,812 自动清日常] INFO: Message ******** triggered wrapper.
using cache D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr\autopcr..
./cache/buffer\buffer.json
None requested SourceIniIndexRequest at /source_ini/index?format=json
None requested SourceIniGetMaintenanceStatusRequest at /source_ini/get_maintenan
ce_status?format=json
None requested ToolSdkLoginRequest at /tool/sdk_login
None requested CheckGameStartRequest at /check/game_start
None requested CheckAgreementRequest at /check/check_agreement
None requested LoadIndexRequest at /load/index
房东 requested HomeIndexRequest at /home/index
Traceback (most recent call last):
File "D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr_task.py", line
40, in do_task
img = await draw(resp, alian + '' + ''.join(self.do_module_list()), self.c
allback.qid)
File "D:\Pcrbot_Test3\HoshinoBot_Test3\hoshino\modules\autopcr_util.py", line
75, in draw
imgkit.from_string(df.to_html(index=False, escape=False), file)
AttributeError: 'Styler' object has no attribute 'to_html'
运行系统为windows7
wkhtmltoimage已安装
requirements.txt内依赖均已安装。
直接作为网页版运行都没有问题,均正常。
作为hoshino插件运行时,发送指令后返回就会报错AttributeError: 'Styler' object has no attribute 'to_html'
另外在http_server文件夹下并未发现名为static的文件夹。
求教,感谢!
群内使用指令允许/禁止网页清日常
关于角色碎片,虽然客户端做了购买限制(即到达一定数量就不能购买),但服务端并没没有这个检查,实际可以继续购买。
所以我写的部分仅仅是区分了仅购买装备、仅购买角色碎片(普通商店就是经验药水和强化石),还是都购买,因为有这个选项,并且不同商店的内容是不一样的(总的来说有三类,经验药水+强化石,角色碎片和装备,经验药水和装备),重置次数选项就不晓得加在哪里好一点。
[2023-06-13 11:12:11,107 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.clan_unlocker", error: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\clan_unlocker.py", line 1, in
from autopcr.core import pcrclient, ApiException, sessionmgr
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.httpserver_test", error: No module named 'autopcr'
[2023-06-13 11:12:11,107 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\httpserver_test.py", line 1, in
from autopcr.http_server.httpserver_test import *
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:11,122 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.main", error: No module named 'autopcr'
[2023-06-13 11:12:11,122 nonebot] ERROR: No module named 'autopcr'
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\main.py", line 3, in
import autopcr
ModuleNotFoundError: No module named 'autopcr'
[2023-06-13 11:12:14,030 nonebot] ERROR: Failed to import "hoshino.modules.autopcr.server", error: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init.py)
[2023-06-13 11:12:14,030 nonebot] ERROR: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init.py)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\modules\autopcr\server.py", line 18, in
from hoshino.config import PUBLIC_ADDRESS
ImportError: cannot import name 'PUBLIC_ADDRESS' from 'hoshino.config' (C:\Users\Administrator\Desktop\mali\HoshinoBot\hoshino\config_init.py)
Mark
智能刷n图扩展到其他庆典(h2, vh2)
地下城扫荡 underground_skip
露娜塔回廊扫荡 tower_cloister_sweep
六星碎片本扫荡 six_star
活动H图扫荡 hatsune_h_sweep
#以下的功能是在某次commit之后失效的
地下城扫荡 underground_skip
家园家具升级 room_upper_all
基本信息 user_info
暂时遇到的就这些,给大佬参考
或者等怡宝,他说六月底把之前的开源出来()
原本的quest_aware
里的quest_info
包含的挑战次数、重置次数、体力,前后两个数据我替换成了数据库里获得的每个关卡(而不是关卡类别,比如n,h,vh之类的),但是重置次数貌似在数据库里没找到,唯一找到的就是loadindex
的ini_setting
里的recover_challenge_count
,very_hard_recover_challenge_count
之类的。所以关于重置次数的可能得单独判断。
autopcr/autopcr/core/database.py
Line 53 in a168e51
拟在error handler对网络错误进行重试
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.