Simple Python Script to Find the Blocked website URL using Tor Proxy.

Using Python requests with TOR Proxy Connection

pip install requests
pip install -U requests[socks]

import sys
import requests
proxies = {'http': 'socks5://',
           'https': 'socks5://'}
s = requests.Session()
s.proxies = proxies
    r = s.get('')
except requests.ConnectionError as e:
    print("OOPS!! Connection Error - May be Tor is Not Enabled or Can't Bypass them")
except requests.Timeout as e:
    print("OOPS!! Timeout Error")
except requests.RequestException as e:
    print("OOPS!! General Error (Enter a Valid URL) - Add HTTP/HTTPS infront of the URL")
except (KeyboardInterrupt, SystemExit):
    print("Ok ok, quitting")
    print(r.url + " - is an Current Live and Active URL")