Commit ec45d653 authored by 王明明's avatar 王明明

添加鼠标移动事件

parent 6f963d0a
......@@ -27,8 +27,7 @@ func query(data []byte) {
tls_client.WithNotFollowRedirects(),
tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument
//tls_client.WithProxyUrl("http://127.0.0.1:8890"),
tls_client.WithProxyUrl("http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"),
tls_client.WithInsecureSkipVerify(),
tls_client.WithProxyUrl(px),
}
uri, _ := url.Parse("https://www.easyjet.com/")
var cookies []*http.Cookie
......@@ -77,7 +76,7 @@ func querynk(data []byte) {
tls_client.WithNotFollowRedirects(),
tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument
//tls_client.WithProxyUrl("http://127.0.0.1:8890"),
tls_client.WithProxyUrl("http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"),
tls_client.WithProxyUrl(px),
tls_client.WithInsecureSkipVerify(),
}
uri, _ := url.Parse("https://www.spirit.com/")
......@@ -115,9 +114,9 @@ func querynk(data []byte) {
func actU2() {
t1 := time.Now()
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
resp, err := http.Post("http://127.0.0.1:59001/akamai/gen",
resp, err := http.Post(akmUrl,
//"application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
"application/json", strings.NewReader("{\"type\": \"U2\", \"proxy\": \"http://127.0.0.1:8890\"}"))
"application/json", strings.NewReader("{\"type\": \"U2\", \"proxy\": \""+px+"\"}"))
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen", "application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
if err != nil {
//panic(err)
......@@ -129,14 +128,10 @@ func actU2() {
query(body)
}
func actVY() {
px := "http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
if *Debug {
px = "http://127.0.0.1:8890"
}
t1 := time.Now()
fmt.Println(px)
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
resp, err := http.Post("http://127.0.0.1:59001/akamai/gen",
resp, err := http.Post(akmUrl,
"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \""+px+"\"}"))
//"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \"http://127.0.0.1:8890\"}"))
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen", "application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
......@@ -152,8 +147,8 @@ func actVY() {
func actnk() {
t1 := time.Now()
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
resp, err := http.Post("http://127.0.0.1:59001/akamai/gen",
"application/json", strings.NewReader("{\"type\": \"NK\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
resp, err := http.Post(akmUrl,
"application/json", strings.NewReader("{\"type\": \"NK\", \"proxy\": \""+px+"\"}"))
//"application/json", strings.NewReader("{\"type\": \"U2\", \"proxy\": \"http://127.0.0.1:8890\"}"))
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen", "application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
if err != nil {
......@@ -167,10 +162,18 @@ func actnk() {
}
var Debug *bool
var px = "http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
var akmUrl = "http://lcc.unififi.com/akamai/gen"
func main() {
Debug = flag.Bool("debug", true, "本地调试")
Debug = flag.Bool("debug", false, "本地调试")
flag.Parse()
if *Debug {
px = "http://127.0.0.1:8890"
akmUrl = "http://127.0.0.1:59001/akamai/gen"
}
fmt.Println(px)
fmt.Println(akmUrl)
for i := 0; i < 1; i++ {
t1 := time.Now()
fmt.Println(t1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment