Just for the sake of completeness: I've just found that Pywikibot's
Link() class makes thinks just easier by parsing site, namespace and
page title automatically.
title=":mw:Manual:Pywikibot"
l =pywikibot.page.Link(title)
url =pywikibot.Page(l.site, l.title, l.namespace.id).full_url()
Florian
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/LIKLVLSRJRPHP32YCLEZMRMSOW56AY6T/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org