#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
import requests
proxies = {
'http': 'socks5://localhost:9050',
'https': 'socks5://localhost:9050'
}
url = 'http://icanhazip.com/'
out = requests.get(url, proxies=proxies).text
out = (out.replace('\n',''))
print (out)