M
M
Mark Adams2016-04-13 16:04:20
Python
Mark Adams, 2016-04-13 16:04:20

How does urllib proxies work in python?

import urllib
proxy = {'http':'http://5.53.16.183:8080'} #так же работает с http://rfwreff4rf
res = urllib.urlopen( 'https://vk.com/feed', proxies=proxy )
print res.read()

res gets the response no matter what I write in the proxy. Even if you write ' rfwreff4rf ' instead of ' 5.53.16.183:8080 ' , it will still open the page. How to connect through a proxy?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iegor, 2016-04-13
@iegor

Does it bother you that you use different protocols?

D
Dimonchik, 2016-04-13
@dimonchik2013

I recommend learning pyCurl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question