parse

解析URL

1
2
3
url = 'https://www.archdaily.com/search/projects/categories/adaptive-reuse?page=22'
parseResult = parse.urlparse(url)
print(parseResult)

输出结果

1
ParseResult(scheme='https', netloc='www.archdaily.com', path='/search/projects/categories/adaptive-reuse', params='', query='page=22', fragment='')