You are welcome, and I also learned something. :)
tohuuu th@tohuuu.de ezt írta (időpont: 2024. aug. 23., P, 14:44):
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/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org