I use the huge proxies to crawl amazon website, but in onerror function, i can not get the response.Request.Proxy Url because it was not always display. I want to remove all the not working proxies. Thanks you.
I have attched the output following and the full code.
Output:
-----onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B00XK69NRW": read tcp 192.168.49.15:61729->89.203.235.110:9999: read: connection reset by peer-----
-----onResponse,ProxyURL:http://157.100.52.149:999,status code:200----
------onError,ProxyURL:http://45.167.125.209:9992,error:context deadline exceeded (Client.Timeout or context cancellation while reading body)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B07SQXG8L1": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-----
------onError,ProxyURL:http://200.58.87.195:8080,error:context deadline exceeded (Client.Timeout or context cancellation while reading body)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B004YD769C": proxyconnect tcp: dial tcp 118.42.15.57:4003: i/o timeout (Client.Timeout exceeded while awaiting headers)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B009UPUJIY": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B07HF3X6Y4": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B088SXVHP3": proxyconnect tcp: dial tcp 222.111.51.161:4007: i/o timeout (Client.Timeout exceeded while awaiting headers)-----
------onError,ProxyURL:,error:Get "https://www.amazon.com/dp/B01KIMOEW4": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-----
I use the huge proxies to crawl amazon website, but in onerror function, i can not get the response.Request.Proxy Url because it was not always display. I want to remove all the not working proxies. Thanks you. I have attched the output following and the full code. Output:
Full code: