We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 175a146 commit 59b89a7Copy full SHA for 59b89a7
1 file changed
tools/url.py
@@ -30,4 +30,7 @@ def test():
30
31
32
if __name__ == '__main__':
33
- test()
+ test()
34
+ test_url = 'http://suining.58.com/zhongdiangong/?sort=pingfen'
35
+ print urlparse(test_url).hostname.rstrip('.58.com')
36
+ print urlparse(test_url).path.strip('/')
0 commit comments