equal
deleted
inserted
replaced
59 |
59 |
60 if not isinstance(url, str): |
60 if not isinstance(url, str): |
61 url = url.decode('utf-8') |
61 url = url.decode('utf-8') |
62 url = re.sub(b'^.*://', b'', url.encode('idna')).split(b'/')[0].lower() |
62 url = re.sub(b'^.*://', b'', url.encode('idna')).split(b'/')[0].lower() |
63 domain = [] |
63 domain = [] |
64 print('url:', url) |
|
65 |
64 |
66 for section in url.split(b'.'): |
65 for section in url.split(b'.'): |
67 if section in suffixes: |
66 if section in suffixes: |
68 domain.append(section) |
67 domain.append(section) |
69 else: |
68 else: |