Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:wikibaseintegrator [2025/02/10 03:42] – darron | tools:wikibaseintegrator [2025/02/11 07:30] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
====WikibaseIntegrator==== | ====WikibaseIntegrator==== | ||
- | [[https:// | + | [[https:// |
===Clone=== | ===Clone=== | ||
Line 7: | Line 7: | ||
< | < | ||
git clone --recursive https:// | git clone --recursive https:// | ||
- | </ | ||
- | |||
- | Perform operations inside the repository directory. | ||
- | |||
- | < | ||
cd WikibaseIntegrator | cd WikibaseIntegrator | ||
</ | </ | ||
Line 24: | Line 19: | ||
===Test=== | ===Test=== | ||
+ | |||
+ | < | ||
+ | source ~/ | ||
+ | </ | ||
< | < | ||
Line 30: | Line 29: | ||
< | < | ||
+ | #! / | ||
+ | |||
from wikibaseintegrator import WikibaseIntegrator | from wikibaseintegrator import WikibaseIntegrator | ||
+ | from wikibaseintegrator.wbi_config import config as wbi_config | ||
+ | |||
+ | wbi_config[' | ||
wbi = WikibaseIntegrator() | wbi = WikibaseIntegrator() | ||
my_first_wikidata_item = wbi.item.get(entity_id=' | my_first_wikidata_item = wbi.item.get(entity_id=' | ||
- | # to check successful installation and retrieval of the data, you can print the json representation of the item | ||
print(my_first_wikidata_item.get_json()) | print(my_first_wikidata_item.get_json()) | ||
</ | </ | ||
< | < | ||
- | ~/.venvs/ | + | chmod +x human.py |
+ | ./human.py | ||
</ | </ | ||
< | < | ||
- | WARNING: Please set an user agent if you interact with a Wikibase instance from the Wikimedia Foundation. | + | deactivate |
- | More information in the README.md and https:// | + | |
- | ... | + | |
</ | </ | ||
+ | |||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |