forked from xbyl1234/instagram_lite_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathins_test.go
28 lines (26 loc) · 770 Bytes
/
ins_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Please let author have a drink, usdt trc20: TEpSxaE3kexE4e5igqmCZRMJNoDiQeWx29
// tg: @fuckins996
package main
import (
"CentralizedControl/common/proxys"
"CentralizedControl/instagram"
"os"
"testing"
)
func TestIns(t *testing.T) {
instagram.InitInstagram(nil, nil)
ckStr, _ := os.ReadFile("./ins_ck.json")
ck := instagram.ConvDeviceFile2Cookies(string(ckStr))
ins := instagram.CreateInstagram(ck)
ins.SetProxy(proxys.DebugHttpProxy)
//info, err := ins.GetUserInfo(ins.GetSelfUserId())
//if err != nil {
// return
//}
//_ = info
//err := ins.FollowUserByQrCode("https://instagram.com/kaphlenaroiez?igshid=ZGUzMzM3NWJiOQ==")
err := ins.FollowUserByQrCode("https://instagram.com/rodrigueznovan?igshid=ZGUzMzM3NWJiOQ==")
if err != nil {
return
}
}