解析url
2021-02-07 22:19
标签:net result com edit port 解析 imp etl parse 解析url 标签:net result com edit port 解析 imp etl parse 原文地址:https://www.cnblogs.com/qiaoer1993/p/13087221.htmlfrom urllib.parse import urlparse
url_change = urlparse(‘https://i.cnblogs.com/EditPosts.aspx?opt=1‘)
#ParseResult(scheme=‘https‘, netloc=‘i.cnblogs.com‘, path=‘/EditPosts.aspx‘, params=‘‘, query=‘opt=1‘, fragment=‘‘)
scheme = url_change.scheme #‘https‘
netloc = url_change.netloc #‘i.cnblogs.com‘