Skip to content

Sync Authors on Open Libraray and Wikidata#7

Draft
xayhewalo wants to merge 1 commit into
cdrini:masterfrom
xayhewalo:sync_authors.py
Draft

Sync Authors on Open Libraray and Wikidata#7
xayhewalo wants to merge 1 commit into
cdrini:masterfrom
xayhewalo:sync_authors.py

Conversation

@xayhewalo

Copy link
Copy Markdown

?work (wdt:P50|wdt:P2093) ?item.
}
# LIMIT 10 # for debugging
"""

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cdrini

cdrini commented Apr 15, 2020

Copy link
Copy Markdown
Owner

Sometimes validation failed; needed to remove 'id' 🤷 Might be a good idea to add it to openlibrary-client schema as deprecated so that edits don't have to remove it randomly

delattr(a, 'id') # 🤷 
setattr(a, 'remote_ids', { 'wikidata': 'Q640251'})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants