steamauto / steamauto Goto Github PK
View Code? Open in Web Editor NEW免费开源的网易BUFF、悠悠有品、Steam的全自动收发货解决方案
License: GNU Affero General Public License v3.0
免费开源的网易BUFF、悠悠有品、Steam的全自动收发货解决方案
License: GNU Affero General Public License v3.0
order_info为空, 需要调查哪笔commit弄坏了
有些用户脑子不太正常会自己篡改交易报价 软件自动接收之前做检查比较安全
PS. 如果遇到这种用户可以拒绝报价然后向BUFF举报, 直接永久封号
[2023-06-10 23:31:13] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...
[2023-06-10 23:31:13] - ERROR: HTTPSConnectionPool(host='api.steampowered.com', port=443): Max retries exceeded with url: /IEconService/GetTradeOffer/v1?key=&tradeofferid=&language=english (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 467, in _make_request
File "urllib3\connectionpool.py", line 1092, in validate_conn
File "urllib3\connection.py", line 635, in connect
File "urllib3\connection.py", line 774, in ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl.py", line 459, in ssl_wrap_socket
File "urllib3\util\ssl.py", line 503, in _ssl_wrap_socket_impl
File "ssl.py", line 513, in wrap_socket
File "ssl.py", line 1071, in _create
File "ssl.py", line 1342, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 790, in urlopen
File "urllib3\connectionpool.py", line 491, in _make_request
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "requests\adapters.py", line 486, in send
File "urllib3\connectionpool.py", line 844, in urlopen
File "urllib3\util\retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.steampowered.com', port=443): Max retries exceeded with url: /IEconService/GetTradeOffer/v1?key=&tradeofferid=&language=english (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 279, in exec
File "steampy\client.py", line 144, in get_trade_offer
File "steampy\client.py", line 79, in api_call
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 517, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.steampowered.com', port=443): Max retries exceeded with url: /IEconService/GetTradeOffer/v1?key=&tradeofferid=&language=english (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
[2023-06-10 23:31:13] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试!
[2023-06-10 23:31:13] - INFO: [BuffAutoAcceptOffer] 将在300秒后再次检查待发货订单信息!
2023-06-14-11-11-22.log
没有BUFFapp手动发货会出现以下报错,订单不会被处理。
�[31m[2023-06-14 11:11:41] - ERROR: 'offer'�[0m
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 343, in exec
KeyError: 'offer'
手动BUFFapp发货后,会处理Steam的发货,但还是会继续报错
[31m[2023-06-14 11:16:55] - ERROR: 'set' object has no attribute 'index'�[0m
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 356, in exec
AttributeError: 'set' object has no attribute 'index'
[2023-05-01 17:29:45] - INFO: 正在检查Steam账户登录状态...
[2023-05-01 17:29:48] - INFO: Steam账户状态正常
[2023-05-01 17:29:48] - INFO: 正在进行BUFF待发货/待收货饰品检查...
[2023-05-01 17:29:49] - INFO: 查找到0个待处理的BUFF未发货订单!
[2023-05-01 17:29:49] - INFO: 将在180秒后再次检查待发货订单信息!
[2023-05-01 17:32:49] - INFO: 正在检查Steam账户登录状态...
因为长时间在服务器挂机自动发货,有时候梯子不稳定,不稳定的时候检查登录状态失败会闪退,能否修改成检查登录状态失败后,30秒后重试,而不是像现在一样直接闪退了.
Traceback (most recent call last):
File "C:\Python3.11\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3.11\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3.11\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3.11\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\RuanjianXZ\Buff-Bot-3.2\Buff-Bot.py", line 255, in
main()
File "D:\RuanjianXZ\Buff-Bot-3.2\Buff-Bot.py", line 124, in main
SteamClient.login(client, acc.get('steam_username'), acc.get('steam_password'), 'steamaccount.json')
File "C:\Python3.11\Lib\site-packages\steampy\client.py", line 46, in login
LoginExecutor(username, password, self.steam_guard['shared_secret'], self._session).login()
File "C:\Python3.11\Lib\site-packages\steampy\login.py", line 20, in login
login_response = self._send_login_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3.11\Lib\site-packages\steampy\login.py", line 29, in _send_login_request
rsa_params = self._fetch_rsa_params()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3.11\Lib\site-packages\steampy\login.py", line 53, in _fetch_rsa_params
data={'username': self.username}).json()
^^^^^^
File "C:\Python3.11\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
参考 bukson/steampy#153 bukson/steampy#210
应对报价检查报价状态是否为9 (等待令牌确认) 若为9则使用_confirm_transaction()确认报价
经过测试,暂时无法登录Steam,敬请等待修复!
�[32m[2023-06-12 22:10:38] - INFO: [BuffAutoAcceptOffer] 正在处理第 1 个交易报价 报价ID6131917023�[0m
�[32m[2023-06-12 22:10:38] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...�[0m
�[31m[2023-06-12 22:10:39] - ERROR: Invalid API key�[0m
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 279, in exec
File "steampy\client.py", line 144, in get_trade_offer
File "steampy\client.py", line 83, in api_call
steampy.exceptions.InvalidCredentials: Invalid API key
�[32m[2023-06-12 22:10:39] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试! �[0m
�[32m[2023-06-12 22:10:39] - INFO: [BuffAutoAcceptOffer] 将在230秒后再次检查待发货订单信息! �[0m
api是没问题的,重置重新填还是错误
建议使用Apprise 作为消息通知系统, 允许用户在出售皮肤后进行消息通知
�[32m[2023-05-15 11:27:47] - INFO: 欢迎使用Steamauto Github仓库:https://github.com/jiajiaxd/Steamauto�[0m
�[32m[2023-05-15 11:27:47] - INFO: 若您觉得Steamauto好用, 请给予Star支持, 谢谢! �[0m
�[32m[2023-05-15 11:27:47] - INFO: 正在检查更新...�[0m
�[32m[2023-05-15 11:27:48] - INFO:
最新版本日期: 2023-05-14 08:22:06
update: 不必默认开启价格保护
请自行检查是否更新! �[0m
�[32m[2023-05-15 11:27:48] - INFO: 正在初始化...�[0m
�[32m[2023-05-15 11:27:48] - INFO: 检测到缓存的steam_session, 正在尝试登录...�[0m
就直接闪退了是为什么
我看代码里面有一个make_offer方法,这个是发送报价的方法嘛
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 280, in exec
KeyError: 'offer'
�[32m[2023-06-19 19:23:25] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试! �[0m
�[32m[2023-06-19 19:23:25] - INFO: [BuffAutoAcceptOffer] 正在处理交易报价 报价ID�[0m
�[32m[2023-06-19 19:23:25] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...�[0m
�[31m[2023-06-19 19:23:25] - ERROR: 'offer'�[0m
软件版本为最新的3.1.0,buff已开启买家发起报价
[2023-06-17 23:49:24] - ERROR: can only concatenate str (not "NoneType") to str
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 359, in exec
TypeError: can only concatenate str (not "NoneType") to str
�[32m[2023-06-18 17:22:31] - INFO: [UUAutoAcceptOffer] 正在接受悠悠有品待发货报价, 商品名: 反冲武器箱, 报价ID:
�[31m[2023-06-18 17:22:33] - ERROR: substring not found�[0m
Traceback (most recent call last):
File "plugins\UUAutoAcceptOffer.py", line 51, in exec
File "steampy\client.py", line 26, in func_wrapper
File "steampy\client.py", line 187, in accept_trade_offer
File "steampy\client.py", line 206, in _fetch_trade_partner_id
File "steampy\utils.py", line 17, in text_between
ValueError: substring not found
�[32m[2023-06-18 17:22:33] - INFO: [UUAutoAcceptOffer] 出现未知错误, 稍后再试! �[0m
�[32m[2023-06-18 17:22:33] - INFO: [UUAutoAcceptOffer] 将在300秒后再次检查待发货订单信息!�[0m
箱子发不了 但是饰品可以发
希望作者可以支持docker一键部署方式
requests.exceptions.SSLError: HTTPSConnectionPool(host='steamcommunity.com', port=443): Max retries exceeded with url: /login/getrsakey/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
导入pycharm所有配置弄好报这个错该咋整啊
RT,其他都是正常的,在提示这个之后也会返回INFO: 查找到0个待处理的BUFF未发货订单!,使用的是美国云服务器,请问这是正常的还是不正常的
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Steamauto-master\Steamauto.py", line 232, in
main()
File "C:\Users\Administrator\Desktop\Steamauto-master\Steamauto.py", line 154, in main
steam_client = login_to_steam()
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\Steamauto-master\Steamauto.py", line 59, in login_to_steam
client = pickle.load(f)
^^^^^^^^^^^^^^
EOFError: Ran out of input
这应该怎么解决啊
因为设定5分钟检测一次BUFF或UU报价,但是5分钟内出售99+,在接受报价时能否增加个5-10秒,避免STEAM频繁访问.
Traceback (most recent call last):
File "Steamauto.py", line 236, in
File "Steamauto.py", line 143, in main
File "json_init_.py", line 293, in load
File "json_init_.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 36 column 15 (char 1061)
[9680] Failed to execute script 'Steamauto' due to unhandled exception!
运行到这里就掉了,这个该怎么办。。
2023-05-18-20-02-37.log
鉴于Steam服务器很垃(bushi) / 为了降低程序的使用门槛 / 提高可用性
计划增加以下功能:
现在UU平台也火起来了,UU平台的自动化报价处理有木有可能也能够集成进来。
Github Releases中提供的Linux二进制版本可能无法正常运行,正寻找解决方案。Linux用户请通过源码运行。
欢迎发起pr协助修复此bug!
登录文件都配置好了,在登录Steam的时候报错如下:
Traceback (most recent call last):
File "Buff-Bot.py", line 160, in
main()
File "Buff-Bot.py", line 93, in main
SteamClient.login(client, acc.get('steam_username'), acc.get('steam_password'), 'steamaccount.json')
File "/home//.virtualenvs/buff/lib/python3.6/site-packages/steampy/client.py", line 46, in login
LoginExecutor(username, password, self.steam_guard['shared_secret'], self._session).login()
File "/home//.virtualenvs/buff/lib/python3.6/site-packages/steampy/login.py", line 21, in login
self._check_for_captcha(login_response)
File "/home//.virtualenvs/buff/lib/python3.6/site-packages/steampy/login.py", line 87, in _check_for_captcha
raise CaptchaRequired('Captcha required')
steampy.exceptions.CaptchaRequired: Captcha required
请问是需要验证码吗?怎么解决这个问题
[2023-06-21 10:46:42] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...
[2023-06-21 10:46:42] - INFO: [BuffAutoAcceptOffer] 报价物品检查完成! 正在接受报价...
[2023-06-21 10:46:44] - ERROR:
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 313, in exec
File "steampy\client.py", line 26, in func_wrapper
File "steampy\client.py", line 198, in accept_trade_offer
File "steampy\client.py", line 211, in _confirm_transaction
File "steampy\confirmation.py", line 38, in send_trade_allow_request
File "steampy\confirmation.py", line 100, in _select_trade_offer_confirmation
steampy.exceptions.ConfirmationExpected
[2023-06-21 10:46:44] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试!
[2023-06-21 10:46:44] - INFO: [BuffAutoAcceptOffer] 正在处理第 2 个交易报价 报价ID6149549939
[2023-06-21 10:46:44] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...
[2023-06-21 10:46:45] - INFO: [BuffAutoAcceptOffer] 报价物品检查完成! 正在接受报价...
[2023-06-21 10:46:46] - ERROR:
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 313, in exec
File "steampy\client.py", line 26, in func_wrapper
File "steampy\client.py", line 198, in accept_trade_offer
File "steampy\client.py", line 211, in _confirm_transaction
File "steampy\confirmation.py", line 38, in send_trade_allow_request
File "steampy\confirmation.py", line 100, in _select_trade_offer_confirmation
steampy.exceptions.ConfirmationExpected
[2023-06-21 10:46:46] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试!
[2023-06-21 10:46:46] - INFO: [BuffAutoAcceptOffer] 将在300秒后再次检查待发货订单信息!
目前尚不确定
问题一:
�[32m[2023-05-26 21:13:54] - INFO: [BuffAutoAcceptOffer] 正在检查报价物品...�[0m
�[31m[2023-05-26 21:13:55] - ERROR: 'offer'�[0m
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 280, in exec
KeyError: 'offer'
�[32m[2023-05-26 21:13:55] - INFO: [BuffAutoAcceptOffer] 出现错误, 稍后再试! �[0m
问题二:
�[32m[2023-05-26 21:20:19] - INFO: [BuffAutoAcceptOffer] 查找到 1 个待处理的BUFF待确认供应订单! �[0m
�[31m[2023-05-26 21:20:20] - ERROR: 'offer'�[0m
Traceback (most recent call last):
File "plugins\BuffAutoAcceptOffer.py", line 343, in exec
KeyError: 'offer'
完整代码
第一次打开Buff-Bot,一定会弹出未检测到steam_session.pkl!
steam_session.pkl文件用于缓存steam的session,首次登录会自动创建。
�[32m[2023-06-11 02:24:40] - INFO: 欢迎使用Steamauto Github仓库:https://github.com/jiajiaxd/Steamauto�[0m
�[32m[2023-06-11 02:24:40] - INFO: 若您觉得Steamauto好用, 请给予Star支持, 谢谢! �[0m
�[32m[2023-06-11 02:24:40] - INFO: 当前版本: 3.0.4�[0m
�[32m[2023-06-11 02:24:40] - INFO: 正在检查更新...�[0m
�[32m[2023-06-11 02:24:42] - INFO: 当前版本已经是最新版本�[0m
�[32m[2023-06-11 02:24:42] - INFO: 正在初始化...�[0m
�[32m[2023-06-11 02:24:42] - INFO: 检测到首次登录Steam,正在尝试登录...登录完成后会自动缓存session�[0m
�[32m[2023-06-11 02:24:42] - INFO: 正在登录Steam...�[0m
�[31m[2023-06-11 02:24:44] - ERROR: 程序发生致命错误,请将此界面截图,并提交最新的log文件到https://github.com/jiajiaxd/Steamauto/issues�[0m
Traceback (most recent call last):
File "C:\Users\22175\Desktop\Steamauto-master\Steamauto.py", line 264, in
exit_code = main()
^^^^^^
File "C:\Users\22175\Desktop\Steamauto-master\Steamauto.py", line 197, in main
steam_client = login_to_steam()
^^^^^^^^^^^^^^^^
File "C:\Users\22175\Desktop\Steamauto-master\Steamauto.py", line 106, in login_to_steam
SteamClient.login(client, acc.get("steam_username"), acc.get("steam_password"), STEAM_ACCOUNT_INFO_FILE_PATH)
File "C:\Users\22175\Desktop\Steamauto-master\steampy\client.py", line 46, in login
LoginExecutor(username, password, self.steam_guard['shared_secret'], self._session).login()
File "C:\Users\22175\Desktop\Steamauto-master\steampy\login.py", line 38, in login
self._assert_valid_credentials(login_response)
File "C:\Users\22175\Desktop\Steamauto-master\steampy\login.py", line 115, in _assert_valid_credentials
raise InvalidCredentials(login_response.json()['message'])
steampy.exceptions.InvalidCredentials
�[31m[2023-06-11 02:24:44] - ERROR: 由于出现致命错误,程序即将退出...�[0m
�[32m[2023-06-11 02:24:44] - INFO: 点击回车键继续...�[0m
�[32m[2023-06-11 02:30:48] - INFO: 正在退出...�[0m
请问是否有联系方式
由于我是一名高中生,平常时间很少,无暇处理以下类型的issue:
1.不提供任何报错(软件“闪退”之前一定会有报错,如果出现“闪退”,请在控制台里手动输命令运行)和日志(存于logs文件夹内)
2.教程内写得很明确却提问的内容
3.要求协助配置(技术支持有偿提供)
Steamauto拥有一个官方QQ群,也可以去群内提问:
欢迎加入 Steamauto 官方QQ群:425721057
防止用户定价错误被机器人扫后直接秒发来不及处理
在支持消息通知的情况也可以对此种危险情况进行通知
在发货的时候 Server酱会发两次相同的通知
@lupohan44
在运行过程中会报 无法获取交易金额,跳过此交易报价的错误
还有能否提供一下 buff_account.json 的格式
代理有时不稳定,直接退出了,或者设置重连间隔,而不是直接退出,纯小白,感谢
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.