Code Monkey home page Code Monkey logo

lenovo-sign's People

Contributors

evasivebears avatar marigold233 avatar yunak 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

lenovo-sign's Issues

阿里云函数入口

阿里云函数入口

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推送小问题

pushplus推送小问题:返回推送失败,调试发现错误为“title不能换行”,title = "联想签到: \n"改为title = "联想签到: "后搞定

请教 阿里云函数报错

{
"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"
]
}
image

无法签到

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

在腾讯云函数部署时遇到问题

image
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&gt;\", line 696, in _load\n File \"Ϗrozen; importlib._bootstrap&gt;\", line 677, in _load_unlocked\n File \"Ϗrozen; importlib._bootstrap_external&gt;\", line 724, in exec_module\n File \"Ϗrozen; importlib._bootstrap_external&gt;\", line 860, in get_code\n File \"Ϗrozen; importlib._bootstrap_external&gt;\", line 791, in source_to_code\n File \"Ϗrozen; importlib._bootstrap&gt;\", 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没有错
签到也是成功的,但是没有企业微信的推送,麻烦大佬解答一下
(手机号是正确的)

大佬,跪求一个TG推送~~

自己尝试改了改,可以水平太差了,完全没改对,大佬能给加一个telegram的推送吗?非常感谢~~

任务中心的浏览任务可以操作吗?

  1. “签到领好礼”的任务中心有很多浏览页面得乐豆的任务
  2. 会员中心可以领乐豆,Android端(IOS不清楚)【我的】上部有个“联想会员”,点进去就有签到领豆。

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.