matej_suchanek added a comment.
`Key:amenity` is a regular page, not an item. You should be able to access
the item through:
import pywikibot
site = pywikibot.Site('en', 'osm')
page = pywikibot.Page(site, 'Key:amenity')
item = page.data_item()
However, OSM is not a `DataSite`. When I update the family file, it throws
`ValueError: Cannot parse a site out of wiki.` because of a sitelink to `wiki`
(local page?).
TASK DETAIL
https://phabricator.wikimedia.org/T269635
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: matej_suchanek
Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, Mateusz_Konieczny,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs