app/extract.py (view raw)
1from urlextract import URLExtract 2 3 4def extract_urls(text): 5 ext = URLExtract() 6 urls = ext.find_urls(text) 7 return urls