lipoja / URLExtract

URLExtract is python class for collecting (extracting) URLs from given text based on locating TLD.
MIT License
241 stars 61 forks source link

Add a list of URLs allowed to extract #125

Closed khoben closed 2 years ago

khoben commented 2 years ago
text = "google.com twitter.com example.com example.com/test.html"
urlextract.permit_list = {"example.com"}
print(urlextract.find_urls(text)) # => ["example.com", "example.com/test.html"]
lipoja commented 2 years ago

@khoben Thank you for your time and contribution!