Merge branch 'master' into master

This commit is contained in:
Somdev Sangwan
2021-01-28 16:50:08 +05:30
committed by GitHub
6 changed files with 24 additions and 10 deletions

View File

@@ -1,13 +1,14 @@
import os
import tld
import re
import json
import tempfile
import re
from urllib.parse import urlparse
def host(string):
if string and '*' not in string:
return tld.get_fld(string, fix_protocol=True, fail_silently=True)
return urlparse(string).netloc
def load_json(file):