Closed MHuberFaust closed 2 years ago
If the JSON representations in the items
do not contain the key "id", then indeed it does not work out of the box.
You could try to test the method search_text_str()
in dbconnection in order to find those QIDs.
Take a look how I used it to find the PIDs for properties using their labels in megaWikibase.
If you upload N items and then you want to edit all of them, in principle you can just find the last QID via the method get_last_eid(content_model='wikibase-item')
in dbconnection. Then all other N-1 QIDs are easy to compute.
Thank you, both approaches worked perfectly.
Heya,
Editing an item with an exact ID, as shown in #15 works just fine. Doing it without it results in this:
Getting the ID of an item using lable seems to fail. It seems like the request made with get_page_latest() does not work correctly.
If you could point me in the right direction, that would be very helpful.
Best, Michael