__author__ = 'zhangxa'

from urllib.parse import urlparse,urlunparse

o = urlparse("http://search.jd.com/Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9")
print(o.scheme)
print(urlunparse(["http","www.baidu.com","Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9","","",""]))
78974a5b38d2b113a967f3c0e56a4770bfa787b3
<mask token>

<mask token>
print(o.scheme)
print(urlunparse(['http', 'www.baidu.com',
    'Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9', '',
    '', '']))

__author__ = 'zhangxa'
<mask token>
o = urlparse(
    'http://search.jd.com/Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9'
    )
print(o.scheme)
print(urlunparse(['http', 'www.baidu.com',
    'Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9', '',
    '', '']))

__author__ = 'zhangxa'
from urllib.parse import urlparse, urlunparse
o = urlparse(
    'http://search.jd.com/Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9'
    )
print(o.scheme)
print(urlunparse(['http', 'www.baidu.com',
    'Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9', '',
    '', '']))

__author__ = 'zhangxa'

from urllib.parse import urlparse,urlunparse

o = urlparse("http://search.jd.com/Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9")
print(o.scheme)
print(urlunparse(["http","www.baidu.com","Search?keyword=python&enc=utf-8&wq=python&pvid=t63yw8ni.bqlsp9","","",""]))