新增通用的浏览器自动化扩展插件

This commit is contained in:
zyj
2025-11-21 14:09:59 +08:00
parent 87a077d40c
commit b448227d3e
17 changed files with 2156 additions and 2 deletions

View File

@@ -90,3 +90,15 @@ func (*Twitter) Register1(ctx *gin.Context) {
"data": res.Data,
})
}
func (*Twitter) Test(ctx *gin.Context) {
// 打开一个浏览器并导入扩展
var Browser libs.Browser
obj := Browser.GetNewBrowser(&libs.Fingerprint{})
obj.Page.MustNavigate("https://baidu.com").MustWaitLoad()
ctx.JSON(http.StatusOK, gin.H{
"code": 200,
"msg": "成功",
"data": "",
})
}