Commit c6258462 authored by anqi-wmm's avatar anqi-wmm

生产 sensor_data

测试成功
parent 847aec98
...@@ -85,8 +85,8 @@ func actVY() { ...@@ -85,8 +85,8 @@ func actVY() {
t1 := time.Now() t1 := time.Now()
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen", //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("http://127.0.0.1:59001/akamai/gen",
"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \""+px+"\"}")) //"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \""+px+"\"}"))
//"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \"http://127.0.0.1:8890\"}")) "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\"}")) //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 { if err != nil {
//panic(err) //panic(err)
...@@ -130,8 +130,8 @@ func testVY(px string, data []byte) { ...@@ -130,8 +130,8 @@ func testVY(px string, data []byte) {
tls_client.WithTimeoutSeconds(30), tls_client.WithTimeoutSeconds(30),
tls_client.WithClientProfile(tls_client.Chrome_110), tls_client.WithClientProfile(tls_client.Chrome_110),
tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument 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://127.0.0.1:8890"),
tls_client.WithProxyUrl(px), //tls_client.WithProxyUrl(px),
tls_client.WithInsecureSkipVerify(), tls_client.WithInsecureSkipVerify(),
} }
uri, _ := url.Parse("https://m.vueling.com/") uri, _ := url.Parse("https://m.vueling.com/")
......
...@@ -62,7 +62,7 @@ func abckSensor(client tls_client.HttpClient, sensorurl string) string { ...@@ -62,7 +62,7 @@ func abckSensor(client tls_client.HttpClient, sensorurl string) string {
func main() { func main() {
wg := &sync.WaitGroup{} wg := &sync.WaitGroup{}
for i := 0; i < 10; i++ { for i := 0; i < 1; i++ {
wg.Add(1) wg.Add(1)
go func() { go func() {
jar := tls_client.NewCookieJar() jar := tls_client.NewCookieJar()
......
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