G
G
game8022017-07-09 23:09:55
JavaScript
game802, 2017-07-09 23:09:55

How to use proxy on node.js?

Good afternoon dear experts. I bought access to proxy lists, but I can't figure out how to use them..
I have (an example of real proxies) a huge listing of these servers:

120.77.158.173:80
120.132.52.111:8888
189.35.153.168:53281
185.25.10.114:8080
120.132.52.188:8888
78.94.131.126:80
180.150.191.238:8888
120.132.52.230:8888
120.132.53.2:8888
218.201.98.196:3128
120.132.52.99:8888
95.143.143.59:53281
91.121.209.52:3129
54.201.251.90:80
36.67.78.225:53281
120.132.52.7:8888
61.183.8.61:3128
190.116.175.2:3128
60.249.19.50:8080
159.203.50.248:3128
66.78.19.25:11442
112.74.101.239:8080
172.104.99.26:3128
138.197.79.163:3128
192.241.150.188:3128
120.132.52.254:8888
116.62.125.12:28080
116.62.125.12:80
180.150.191.248:8888
120.132.52.141:8888
120.132.52.148:8888
120.132.52.98:8888
222.186.153.164:8080
180.150.191.156:8888
120.132.52.137:8888
138.68.173.29:8080
116.62.116.68:80

I have a parser to which I pass the ip and port of this proxy:
needle.get(url, { proxy: '120.132.52.125:8888' }, function (err, res, body) {

The problem is that I can't make a request to the site through the proxy... what could be the problem??
As far as I understand, the request is formed as follows: 120.132.52.125:8888/sitename.com
How can I use these proxy servers for the parser...? Thanks for any help! As a token of gratitude for the help, I will share elite proxies! Thank you!
PS There is a VPS on Ubuntu 16.04, maybe this list can be put somewhere there ..? (stupid question, but still)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-07-10
@game802

120.132.52.125:8888/sitename.com
Thus, perhaps some anonymizers work.
Just make a request to sitename.com, specifying the proxy in the request library (in your case, needle).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question