ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/ValBot/Read-me.rtf
(Generate patch)

Comparing ValBot/Read-me.rtf (file contents):
Revision 1151 by iritscen, Mon Mar 8 14:15:52 2021 UTC vs.
Revision 1153 by iritscen, Mon Apr 5 16:52:24 2021 UTC

# Line 11 | Line 11
11   \cf0 \
12   These are some helpful scripts written for Pywikibot or for the Bash shell.\
13   \
14 < To run the .py bot scripts, first {\field{\*\fldinst{HYPERLINK "https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation"}}{\fldrslt install Pywikibot}}.  Then place the .py scripts in the core/scripts/ directory.  Then 'cd' into the core/ directory and run the command "python pwb.py [name of script without the suffix] [arguments for script]".\
14 > To run the .py bot scripts, first {\field{\*\fldinst{HYPERLINK "https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation"}}{\fldrslt install Pywikibot}}.  Then 'cd' into the core/ directory and run the command "python pwb.py /path/to/script [arguments for script]".  When running a built-in Pywikibot script, you would simply invoke it with "python pwb.py [name of script without suffix] [arguments]", but since these scripts are outside the core/ directory they need full pathname qualification.\
15   \
16 < \ul check_interwiki_links.py\ulnone \
17 < This script scans the wikitext of the supplied page, or all the pages in the supplied category, for interwiki links such as [[wp:Example]] and [[wikt:Definition|some word]].  It then tests those links to make sure they're valid and prints a "WARNING:" message if a redirect or 404 is encountered.\
16 > \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
17 > \cf0 \ul \ulc0 check_interwiki_links.py\ulnone \
18 > This Python script scans the wikitext of the supplied page, or all the pages in the supplied category, for interwiki links such as [[wp:Example]] and [[wikt:Definition|some word]].  It then tests those links to make sure they're valid and prints a "WARNING:" message if a redirect or 404 is encountered.\
19   \
20   Example usage:\
21   python pwb.py check_interwiki_links -page:"Daodan" (checks a single page)\
22   python pwb.py check_interwiki_links -cat:"Wiki Support" (checks the whole category recursively)\
23   \
24 < \ul find_external_images.sh\ulnone \
25 < This script scrapes the HTML of the supplied category of pages and alerts the user to external images so he can consider localizing them to the wiki.  Special attention is drawn to images hosted elsewhere on oni2.net.  This script isn't totally finished and the argument-handling code is in a bit of disarray, but in theory it supports optionally showing inline and/or non-embedded external image links, as well as accepting an individual page as an argument.\
24 > \ul check_intrawiki_section_links.py\ulnone \
25 > This Python script scans the wikitext of the supplied page, or all the pages in the supplied category, for intrawiki links with section links in them such as [[Konoko#In-game_appearance]].  It then tests those links to make sure they're valid and prints a "WARNING:" or "ERROR:" message if a problem is encountered.  "ADVICE:" messages are printed when a link cannot be tested because transclusion is being used to construct it.\
26 > \
27 > Example usage: the syntax is the same as for check_interwiki_links.py, so see its usage above.\
28 > \
29 > \ul find_external_images.py\ulnone \
30 > This Python script scrapes the HTML of the supplied category of pages and alerts the user to external images so he can consider localizing them to the wiki.  Special attention is drawn to images hosted elsewhere on oni2.net.  This script isn't totally finished and the argument-handling code is in a bit of disarray, but in theory it supports optionally showing inline and/or non-embedded external image links, as well as accepting an individual page as an argument.\
31   \
32   Example usage:\
33   python pwb.py find_external_images -justshown -cat:"Category:Real World"\

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)