gwtak / tiebasign Goto Github PK
View Code? Open in Web Editor NEW白嫖Github Action实现贴吧自动签到
白嫖Github Action实现贴吧自动签到
File "TiebaCheckin.py", line 183, in
main()
File "TiebaCheckin.py", line 177, in main
client_sign(i, tbs,f["fid"],f["kw"])
NameError: name 'f' is not defined
Error: Process completed with exit code 1.
作者大大,这个问题怎么解决啊
`
Run python main.py
2021-10-03 02:43:11,385 - INFO - 开始签到第0个用户***
2021-10-03 02:43:11,385 - INFO - 获取tbs开始
Traceback (most recent call last):
File "main.py", line 54, in get_tbs
tbs = s.get(url=TBS_URL, headers=headers, timeout=5).json()[TBS]
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, httplib_request_kw)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/http/client.py", line 1291, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/http/client.py", line 1332, in _send_request
self.putheader(hdr, value)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/urllib3/connection.py", line 224, in putheader
_HTTPConnection.putheader(self, header, values)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/http/client.py", line 1269, in putheader
raise ValueError('Invalid header value %r' % (values[i],))
ValueError: Invalid header value b'BDUSS=\n'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 188, in
main()
File "main.py", line 178, in main
tbs = get_tbs(i)
File "main.py", line 56, in get_tbs
logger.error("获取tbs出错" + e)
TypeError: must be str, not ValueError
Error: Process completed with exit code 1.
`
最近几天连续报错
Version 3.6 with arch x64 not found Available versions: 3.10.8 (x64) 3.11.0 (x64) 3.7.15 (x64) 3.8.14 (x64) 3.9.15 (x64)
GitHub Actions似乎已经不支持3.6版本python,个人将配置文件中的python版本改为 3.10.8
后可以正常运行。
感谢
RT,
因为分支不更新的话,workflow一段时间后会停用,
每两个月都要续一次
,建议像这个签到一样加run.log防止长期未更新master导致workflow停用
https://github.com/moreant/auto-checkin-sockboom
你把自己的BDUSS放在main.py里,别人能登录你的百度账号了,比如网盘什么的
你好
BDUSS 多久换一次呀 想知道它的时效
Traceback (most recent call last): File "/home/runner/work/TieBaSign/TieBaSign/main.py", line 232, in <module> main() File "/home/runner/work/TieBaSign/TieBaSign/main.py", line 227, in main send_email(favorites) File "/home/runner/work/TieBaSign/TieBaSign/main.py", line 209, in send_email smtp.connect(HOST) File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/smtplib.py", line 341, in connect self.sock = self._get_socket(host, port, self.timeout) File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/smtplib.py", line 312, in _get_socket return socket.create_connection((host, port), timeout, File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/socket.py", line 824, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known Error: Process completed with exit code 1.
虽然签到都能够正常完成,但每次签到的时候都会有如此报错,请问应该如何解决呢?
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.