I have python code like this
#! /usr/bin/python
from url parse import urlparse
url = 'https://pastebin.com/raw/EgGZmEqY'
parsed = urlparse(url)
site = parsed.netloc
print site
I want if the site is RAW or NOT just Grabbing the site without HTTPS and HTTP or WWW. For Example i have website like this from RAW. I want to get the URL just example.com
without
https://example.com
http://example.com
www.example.com
example.com
How to get without https,http and www ? Thank you!