Giter Site home page Giter Site logo

1gcat / exampleforscf Goto Github PK

View Code? Open in Web Editor NEW
120.0 120.0 65.0 318 KB

腾讯云SCF(云函数)、Github Actions的python脚本,用于每天自动签到,一个是吾爱破解论坛的一个是哔哩哔哩的,作为我了解SCF的示例。

Python 100.00%
52pojie bilibili checkin github-actions tencent-scf

exampleforscf's Issues

问个小问题

BilibiliCheckIn.py
75 userInfo=['账号:'+str(rejson['data']['silence']),
这里是要返回账号是否存在的?还是要那个用户id啊?

哔哩哔哩观看视频失败了

我更换了BV号之后依旧是失败的,直播签到是成功的

下面是请求日志部分内容:

https://api.bilibili.com:443 "GET /x/web-interface/view?bvid=BV1ty4y1u7w4 HTTP/1.1" 200 None

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "GET /x/web-interface/view?aid=803565321 HTTP/1.1" 200 None

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "POST /x/report/click/h5 HTTP/1.1" 200 38

av803565321观看失败 <Response [200]>

Starting new HTTPS connection (1): sc.ftqq.com:443

腾讯云函数同样失败

报错如下

START RequestId:aa2f298c-d392-4a1e-9e11-f2956b6e046b

ERROR RequestId:aa2f298c-d392-4a1e-9e11-f2956b6e046b Result:{"errorCode":-1,"errorMessage":"Traceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source\n module = _load(spec)\n File "\u003cfrozen importlib._bootstrap\u003e", line 675, in _load\n File "\u003cfrozen importlib._bootstrap\u003e", line 655, in _load_unlocked\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 674, in exec_module\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 781, in get_code\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 741, in source_to_code\n File "\u003cfrozen importlib._bootstrap\u003e", line 205, in _call_with_frames_removed\n File "/var/user/index.py", line 10\n requests.session().get("https://sc.ftqq.com/SCU158181Td1a9de8b37280502ec149541b2c7d59a601bc0508f3d0.send?text=\" + info + "\u0026desp=" + specific,headers=headers)\n ^\nIndentationError: unexpected indent","statusCode":443}

END RequestId:aa2f298c-d392-4a1e-9e11-f2956b6e046b

Report RequestId:aa2f298c-d392-4a1e-9e11-f2956b6e046b Duration:0ms Memory:128MB MemUsage:0.000000MB

哔哩哔哩

复制哔哩哔哩的Cookie不行啊。
请问是哪段Cookie才可以啊?

考虑使用github Actions吗

将52pojie签到的腾讯云SCF版本转为github Actions版本或者兼容二者,直接使用github执行签到怎么样。

哔哩哔哩签到失败 此消息没有正文

START RequestId: 550b7d7a-4aa0-45f3-831d-d72f2c372342

Event RequestId: 550b7d7a-4aa0-45f3-831d-d72f2c372342

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 49

登录失败:账号未登录

Starting new HTTPS connection (1): sc.ftqq.com:443

https://sc.ftqq.com:443 "GET /SCU103261T8fc748a7dc24f7badc6c798bc34e0f815efa8ad2eb84a.send?text=%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E7%AD%BE%E5%88%B0%E5%A4%B1%E8%B4%A5&desp= HTTP/1.1" 200 None

END RequestId: 550b7d7a-4aa0-45f3-831d-d72f2c372342

Report RequestId: 550b7d7a-4aa0-45f3-831d-d72f2c372342 Duration:281ms Memory:64MB MemUsage:24.316406MB

求助,cookie是在home里找吗,感觉不对。。。

52破解的cookie

这个我找不到,同谷歌浏览器,然后F12,network,不显示cookie啊,求图片指导

老哥可否弄一个详细的教程呀?

如题,首先能有代码就很不错了,但是我们大家都是小白,对这些东西相当于门外汉--一窍不通,根本不知道怎么操作,而如果是专业的,我想也就不需要看别人的教程了。
所以特别希望能够有一个更加详细的教程,比如怎么获取cookie,这几乎是最关键的步骤了,一笔带过或者避而不谈的话往往会提高门槛。

About share...

通过使用二维码登录获取的cookie可以实现分享,,,
但是我不知道为什么 ε=(´ο`*)))
image

请指导

执行失败
_uuid=72D815AF-0E4D-091B-EA92-EFF7F20DD4F178379infoc; buvid3=2A01C736-2DB8-4B26-92E7-9276D848B28270389infoc; sid=ctkb256y; DedeUserID=345265463; DedeUserID__ckMd5=bc839148aad38052; SESSDATA=5eb2bf2f%2C1611033994%2Cae3e4*71; bili_jct=b0a8fae0eb980d3485630cfcb1e7e5d0; bp_t_offset_345265463=415060257896950709; CURRENT_FNVAL=16; rpdid=|(JRk)mmkJ0J'ulmlR)k|kl; PVID=1; bp_video_offset_345265463=415534714339115513; finger=1777945899

N0FH9$X405TN6ARD)CE Z{C
image

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.