Last active
August 25, 2022 21:33
-
-
Save PaulMcMillan/70618ca857a0519379af704d88a1c9af to your computer and use it in GitHub Desktop.
urlparse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Case: 0 | |
'scheme://net_loc/path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/path/path2', params='', query='query', fragment='fragment') | |
Case: 1 | |
' scheme://net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=' scheme://net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 2 | |
'scheme ://net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path='scheme ://net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 3 | |
'scheme: //net_loc/path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='', path=' //net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 4 | |
'scheme:/ /net_loc/path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='', path='/ /net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 5 | |
'scheme:// net_loc/path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc=' net_loc', path='/path/path2', params='', query='query', fragment='fragment') | |
Case: 6 | |
'scheme://net_loc /path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='net_loc ', path='/path/path2', params='', query='query', fragment='fragment') | |
Case: 7 | |
'scheme://net_loc/ path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/ path/path2', params='', query='query', fragment='fragment') | |
Case: 8 | |
'scheme://net_loc/path/path2 ?query#fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/path/path2 ', params='', query='query', fragment='fragment') | |
Case: 9 | |
'scheme://net_loc/path/path2? query#fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/path/path2', params='', query=' query', fragment='fragment') | |
Case: 10 | |
'scheme://net_loc/path/path2?query #fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/path/path2', params='', query='query ', fragment='fragment') | |
Case: 11 | |
'scheme://net_loc/path/path2?query# fragment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/path/path2', params='', query='query', fragment=' fragment') | |
Case: 12 | |
'sChEmE://nEt_LoC/pAtH/path2?QuErY#fRaGmEnT' | |
ParseResult(scheme='scheme', netloc='nEt_LoC', path='/pAtH/path2', params='', query='QuErY', fragment='fRaGmEnT') | |
Case: 13 | |
' ://net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=' ://net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 14 | |
': //net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=': //net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 15 | |
':/ /net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=':/ /net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 16 | |
':// net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=':// net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 17 | |
' //net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path=' //net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 18 | |
'/ /net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path='/ /net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 19 | |
'// net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc=' net_loc', path='/path/path2', params='', query='query', fragment='fragment') | |
Case: 20 | |
'sch☃eme://net_loc/path/path2?query#fragment' | |
ParseResult(scheme='', netloc='', path='sch☃eme://net_loc/path/path2', params='', query='query', fragment='fragment') | |
Case: 21 | |
'scheme://net_☃loc/path/path2?query#fragment' | |
ParseResult(scheme='scheme', netloc='net_☃loc', path='/path/path2', params='', query='query', fragment='fragment') | |
Case: 22 | |
'scheme://net_loc/pa☃th/path2?qu☃ery#frag☃ment' | |
ParseResult(scheme='scheme', netloc='net_loc', path='/pa☃th/path2', params='', query='qu☃ery', fragment='frag☃ment') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment