快捷脚本开发:
腾讯课堂签到脚本 只需要几行代码 话不多说 上代码!
// ==UserScript==
// @name 腾讯课堂自动签到
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://ke.qq.com/webcourse/1177763/101274171
// @require http://bigfoot.renxingdao.work/BigFoot.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=qq.com
// @grant none
// ==/UserScript==
;(function() {
'use strict';
new Bigfoot({
data: {},
async mounted() {
this.ifQd()
},
methods: {
//判断是否签到
ifQd(){
console.log('签到开始')
this.ifExist({
el : '.btn-group',
success : (res) => {
console.log('检测到签到 准备 5 s 后签到!'+res)
setTimeout( () => {
res.click()
console.log('签到成功')
this.ifQd()
},5000)
}
})
}
}
})
// Your code here...
})();
引入脚本 new Bigfoot() 开启新世界!
采用模块化模式 写起来更条理清晰 封装高效脚本 具体查看(http://bigfoot.renxingdao.work/)
可实现”类人化“自动数据爬取,数据采集。只需要一点点JS基础 就可以快速上手!!