Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

Python技术掘金自动签到脚本

Python技术:掘金签到脚本。Python技术掘金自动签到脚本

代码演示

import requests,json
from apscheduler.schedulers.blocking import BlockingScheduler
from datetime import datetime
 
url = 'https://api.juejin.cn/growth_api/v1/check_in'
# 签到的接口能看到这些信息
data = {
	'aid':'你的aid',
	'uuid':'你的uuid', 
	'_signature': '你的_signature'}

header = {
	"cookie": '你的cookie'
}

# 请求签到接口
def SignIn():
	r =requests.post(url,data, headers = header)
	print(r.text)

# 输出
def job():
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
    SignIn()


if __name__ == "__main__":
	# 每天早上六点半签到
	scheduler = BlockingScheduler()
	scheduler.add_job(job, 'cron', day_of_week='0-6', hour=6, minute=30)
	scheduler.start()
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

织梦教程DedeCMS系统列表页标题加页码的方法

2023-10-30 0:00:00

编程技巧

织梦教程DedeCMS系统arclist标签生成的代码不换行的方法

2023-11-1 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索