This should increase the number of matchable urls since icann increased
the number of viable ones. Also added additional test cases for
expected behavior.
A possible enhancement could be actively downloading the most recent version of this file available at http://data.iana.org/TLD/tlds-alpha-by-domain.txt. I opted to cache it because actively downloading the file would lead to additional unnecessary dependencies like requests. It would also break from the urlview behavior, which does not currently access any external assets when running.
This should increase the number of matchable urls since icann increased the number of viable ones. Also added additional test cases for expected behavior.
A possible enhancement could be actively downloading the most recent version of this file available at http://data.iana.org/TLD/tlds-alpha-by-domain.txt. I opted to cache it because actively downloading the file would lead to additional unnecessary dependencies like
requests
. It would also break from the urlview behavior, which does not currently access any external assets when running.