marigold233 / lenovo-sign Goto Github PK
View Code? Open in Web Editor NEW联想智选签到
联想智选签到
ck为空,重新获取ck并保存
用着不太明白...
希望可以加个联想会员中心的签到,这个奖励也挺多的。
入口:打开联想智选-我的-赚乐豆-连续签到挑战赛
🚫账号*********今天已经签到, 📆连续签到78天, 🥔共有乐豆5703个, 📅共有延保77天
现在签到好像又没延保券了😂
阿里云函数入口
def handler(event, context):
........
if __name__ == "__main__":
handler()
目前腾讯和阿里云都开始收费了,希望可以说一下免费的华为云怎么配置
Traceback (most recent call last):
File "/arcadia/repo/dch0319_lenovo-sign/lenovo_sign.py", line 244, in
main()
File "/arcadia/repo/dch0319_lenovo-sign/lenovo_sign.py", line 239, in main
message += sign(session)
File "/arcadia/repo/dch0319_lenovo-sign/lenovo_sign.py", line 179, in sign
token = re.findall('token\s=\s"(.*?)"', res.text)[0]
IndexError: list index out of range
如标题,会员中心和签到是可以叠加的的。希望加上
pushplus推送小问题:返回推送失败,调试发现错误为“title不能换行”,title = "联想签到: \n"改为title = "联想签到: "后搞定
之前我是一直用腾讯云函数的,今天关注到代码夹更新成阿里云函数了,是不再支持腾讯云函数了吗?
请教一下,作者是抓的APP数据包吗??用的是什么抓包软件呀?
{
"errorMessage": "Unable to import module 'index'",
"errorType": "ImportModuleError",
"stackTrace": [
"ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+",
"currently the 'ssl' module is compiled with 'OpenSSL 1.1.0l 10 Sep 2019'. See: https://github.com/urllib3/urllib3/issues/2168"
]
}
2023-01-02 07:00:04,334 - INFO: 134*** ck为空,重新获取ck并保存
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0xffffab590a00>, 'Connection to reg.lenovo.com.cn timed out. (connect timeout=None)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='reg.lenovo.com.cn', port=443): Max retries exceeded with url: /auth/rebuildleid (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0xffffab590a00>, 'Connection to reg.lenovo.com.cn timed out. (connect timeout=None)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/lenovo-sign/lenovo_sign.py", line 219, in <module>
main()
File "/opt/lenovo-sign/lenovo_sign.py", line 211, in main
session = login(username, password)
File "/opt/lenovo-sign/lenovo_sign.py", line 148, in login
session = get_cookie()
File "/opt/lenovo-sign/lenovo_sign.py", line 106, in get_cookie
session.get(url="https://reg.lenovo.com.cn/auth/rebuildleid")
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='reg.lenovo.com.cn', port=443): Max retries exceeded with url: /auth/rebuildleid (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0xffffab590a00>, 'Connection to reg.lenovo.com.cn timed out. (connect timeout=None)'))
报错信息:
FC Invoke Start RequestId: 55bd0949-d829-4868-84fe-5a433df84974
2022-11-24 10:42:28 55bd0949-d829-4868-84fe-5a433df84974 [INFO] 17[Phone Number] ck为空,重新获取ck并保存
2022-11-24 10:42:29 55bd0949-d829-4868-84fe-5a433df84974 [ERROR] {
"errorMessage": "Expecting value: line 1 column 1 (char 0)",
"errorType": "JSONDecodeError",
"stackTrace": [
[
"File \"/code/index.py\"",
"line 211",
"in handler",
"session = login(username, password)"
],
[
"File \"/code/index.py\"",
"line 148",
"in login",
"session = get_cookie()"
],
[
"File \"/code/index.py\"",
"line 118",
"in get_cookie",
"if login_response.json().get(\"ret\") == \"1\":"
],
[
"File \"/code/requests/models.py\"",
"line 975",
"in json",
"raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)"
]
]
}
FC Invoke End RequestId: 55bd0949-d829-4868-84fe-5a433df84974, Error: Unhandled function error
不知道是否可以支持一下使用Github Actions 来实现自动打卡
132行的:
if cookie_dict := config.get("cookies").get(username):
报错为:
invalid syntax (<unknown>, line 132)
返回结果为:
{"errorCode":1,"errorMessage":"Traceback (most recent call last):\n File \"/var/runtime/python37/bootstrap.py\", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(\".\", 1)[0], func)\n File \"/var/runtime/python37/bootstrap.py\", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File \"/var/lang/python37/lib/python3.7/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/var/lang/python37/lib/python3.7/imp.py\", line 171, in load_source\n module = _load(spec)\n File \"Ϗrozen; importlib._bootstrap>\", line 696, in _load\n File \"Ϗrozen; importlib._bootstrap>\", line 677, in _load_unlocked\n File \"Ϗrozen; importlib._bootstrap_external>\", line 724, in exec_module\n File \"Ϗrozen; importlib._bootstrap_external>\", line 860, in get_code\n File \"Ϗrozen; importlib._bootstrap_external>\", line 791, in source_to_code\n File \"Ϗrozen; importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/var/user/index.py\", line 132\n if cookie_dict := config.get(\"cookies\").get(username):\n ^\nSyntaxError: invalid syntax","requestId":"2bbc69e4-dffb-44d3-9dd4-d5fae610c3d5","statusCode":443}
按config.toml
里的格式填写了企业id、应用secret和应用id,但在输出中仅有
2023-02-15 09:09:03,271 - INFO: 180xxxxxxx3 ck没有错
签到也是成功的,但是没有企业微信的推送,麻烦大佬解答一下
(手机号是正确的)
自己尝试改了改,可以水平太差了,完全没改对,大佬能给加一个telegram的推送吗?非常感谢~~
[account]
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.