No.
I can imagine it would be quite useful.
Here are some options:

https://pypi.python.org/pypi?%3Aaction=search&term=Tld&submit=search

Packages tld and tldextract both provide that, and more

https://github.com/john-kurkowski/tldextract/blob/master/tldextract/tldextract.py#L337

We could provide a wrapper method. Could you create a task in Phabricator. Adding how it wil, be used will be helpful.

On Tue, 16 Aug 2016 15:14 BinĂ¡ris, <wikiposta@gmail.com> wrote:
Do we have a function that returns known TLDs?

--
BinĂ¡ris
_______________________________________________
pywikibot mailing list
pywikibot@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot