Hi guys,
I just installed the pywikipedia bot on my wiki yesterday. I'm new to Python
but I can try learn it since I'm familiar with PHP. It would take me a while
though to make this first bot since I'm new to the language. The tasks are
pretty straightforward. I would like the bot to run without any user input and
do all of this by itself:
1. For every page on the wiki, check if it has these three characters: ( , ) ,
: . Any page containing any of these characters (curly brackets and colon) will
be moved to a new title. The original title is var_1.
2. For the new title, brackets are simply deleted, and the : (colon) is
replaced with a " - " (a dash with a space on each side). The new title
generated is var_2.
3. Insert this text at the top of this page: {{page_rename|var_1}}, and save
page.
4. Find any existing links on the site to this page which would be in the
format of [[var_1]], and change them to [[var_2|var_1]].
I don't need any menus or other functionality. Is something something pretty
straightforward to make? I would appreciate any tips/help and if its something
that can be made pretty easily, I would be really thankful if someone could do
this for me or give me a good start.
I've looked at some of existing pywikipedia bot scripts (basic.py,
movepages.py) but none of them would work for me and being new to Python, it
would take me a long time to do what I need but in any case I will learn a lot
in this first attempt.
thanks
Eric
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l