1gcat / exampleforscf Goto Github PK
View Code? Open in Web Editor NEW腾讯云SCF(云函数)、Github Actions的python脚本,用于每天自动签到,一个是吾爱破解论坛的一个是哔哩哔哩的,作为我了解SCF的示例。
腾讯云SCF(云函数)、Github Actions的python脚本,用于每天自动签到,一个是吾爱破解论坛的一个是哔哩哔哩的,作为我了解SCF的示例。
报错如下
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
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里找吗,感觉不对。。。
执行失败
_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
我更换了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
可以说一下这两个的cookie咋找吗
执行超时时间 默认3秒,时间太短,会报错,建议超时时间改长点
c = b.find('div', id='messagetext').find('p').text
AttributeError: 'NoneType' object has no attribute 'find'
如题,首先能有代码就很不错了,但是我们大家都是小白,对这些东西相当于门外汉--一窍不通,根本不知道怎么操作,而如果是专业的,我想也就不需要看别人的教程了。
所以特别希望能够有一个更加详细的教程,比如怎么获取cookie,这几乎是最关键的步骤了,一笔带过或者避而不谈的话往往会提高门槛。
这个我找不到,同谷歌浏览器,然后F12,network,不显示cookie啊,求图片指导
内容如下
sed -i 's/你的server酱SCKEY//' ./52pojieCheckIn.py
sed -i 's/你的cookie//' ./52pojieCheckIn.py
将52pojie签到的腾讯云SCF版本转为github Actions版本或者兼容二者,直接使用github执行签到怎么样。
RT,谢谢
BilibiliCheckIn.py
75 userInfo=['账号:'+str(rejson['data']['silence']),
这里是要返回账号是否存在的?还是要那个用户id啊?
吾爱签到失效了
复制哔哩哔哩的Cookie不行啊。
请问是哪段Cookie才可以啊?
bigfun.cn 的签到比较简单 登录就算签到
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.