新增通用的浏览器自动化扩展插件
This commit is contained in:
@@ -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": "",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user