Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:pywikibot [2025/02/09 07:45] – [Resources] darron | tools:pywikibot [2025/02/11 02:42] (current) – [Examples] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====Pywikibot==== | ====Pywikibot==== | ||
- | Perform all operations inside the pywikibot repository directory once cloned. | + | Wikimedia automation scripts. |
+ | |||
+ | ===Clone=== | ||
- | ===Fetch=== | ||
< | < | ||
git clone --recursive https:// | git clone --recursive https:// | ||
+ | </ | ||
+ | |||
+ | Perform all future operations inside the pywikibot repository directory. | ||
+ | |||
+ | < | ||
cd pywikibot | cd pywikibot | ||
</ | </ | ||
Line 35: | Line 40: | ||
name = ' | name = ' | ||
langs = { | langs = { | ||
- | 'en-gb': ' | + | ' |
} | } | ||
Line 43: | Line 48: | ||
def scriptpath(self, | def scriptpath(self, | ||
return { | return { | ||
- | 'en-gb': '/ | + | ' |
}[code] | }[code] | ||
def protocol(self, | def protocol(self, | ||
return { | return { | ||
- | 'en-gb': ' | + | ' |
}[code] | }[code] | ||
</ | </ | ||
Line 60: | Line 65: | ||
Eg. | Eg. | ||
< | < | ||
- | mylang = 'en-gb' | + | mylang = ' |
family = ' | family = ' | ||
- | usernames[' | + | usernames[' |
</ | </ | ||
Line 77: | Line 82: | ||
</ | </ | ||
+ | < | ||
+ | source ~/ | ||
+ | ./pwb.py welcome.py | ||
+ | deactivate | ||
+ | </ | ||
===Resources==== | ===Resources==== | ||