Skip to content

Is writing of labels implemented in the new version? #239

Answered by LeMyst
pgrond asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @pgrond ,
Sorry for the late reply.

yes, label is implemented in v0.12:

wbi = WikibaseIntegrator()
item = wbi.item.get(entity_id='Q141806')
item.labels.set(language='en', value='An updated item', action_if_exists=ActionIfExists.KEEP)
item.write()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pgrond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #238 on October 07, 2021 10:28.