1 |
{\rtf1\ansi\ansicpg1252\cocoartf2578
|
2 |
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica-Bold;\f1\fswiss\fcharset0 Helvetica;}
|
3 |
{\colortbl;\red255\green255\blue255;}
|
4 |
{\*\expandedcolortbl;;}
|
5 |
\margl1440\margr1440\vieww13040\viewh8460\viewkind0
|
6 |
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\qc\partightenfactor0
|
7 |
|
8 |
\f0\b\fs28 \cf0 Uses for Pywikibot
|
9 |
\f1\b0 \
|
10 |
based on https://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts\
|
11 |
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
|
12 |
\cf0 \
|
13 |
\ul FAQ\ulnone \
|
14 |
Q. What is the correct way to throttle a script?\
|
15 |
A. See "put_throttle" in user-config.py, but when calling a bot script multiple times you must implement your own throttle. For working examples, see my .sh scripts.\
|
16 |
\
|
17 |
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
|
18 |
\cf0 \ul Category changing\ulnone \
|
19 |
python pwb.py category move -from:"Art by Okita" -to:"Art by Alex Okita"\
|
20 |
\
|
21 |
\ul General text replacement\ulnone \
|
22 |
python pwb.py replace -page:pagetitle "old text" "new text" -summary:"something"\
|
23 |
Use "-simulate" to perform a dry-run.\
|
24 |
Add "-always" to save edit without prompting. \ul Not\ulnone using this will allow a -simulate run to show you what changes will actually be made. For working examples of how to use "replace", see my .sh scripts.\
|
25 |
\
|
26 |
\ul For future consideration\
|
27 |
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
|
28 |
\cf0 \ulnone weblinkchecker.py -- can this replace Val or serve as the base for a Python port?\
|
29 |
template.py -- for swapping templates\
|
30 |
basic.py -- starter script for a bot} |