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 01:44] – [Install] 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 all future operations inside the pywikibot repository directory. | ||
- | |||
- | < | ||
cd WikibaseIntegrator | cd WikibaseIntegrator | ||
</ | </ | ||
Line 23: | Line 18: | ||
</ | </ | ||
+ | ===Test=== | ||
+ | |||
+ | < | ||
+ | source ~/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | vi human.py | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | #! / | ||
+ | |||
+ | from wikibaseintegrator import WikibaseIntegrator | ||
+ | from wikibaseintegrator.wbi_config import config as wbi_config | ||
+ | |||
+ | wbi_config[' | ||
+ | |||
+ | wbi = WikibaseIntegrator() | ||
+ | my_first_wikidata_item = wbi.item.get(entity_id=' | ||
+ | |||
+ | print(my_first_wikidata_item.get_json()) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | chmod +x human.py | ||
+ | ./human.py | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | deactivate | ||
+ | </ | ||
+ | |||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |