Hello,
With global userpages, some pages appear at Special:BrokenRedirects.
They seem broken, but their content is parsed from the user page at
Meta-Wiki.
I wonder if redirect.py does support -ns/-namespaces or if it could be
added a variable for excluding some namespaces from its operative to
avoid this issues, which happen frequently to me. I'd rather not have
my bot blocked for this.
Since I have no idea of how to code in python, I'm asking here,
because it seems this list gets more attention than Phabricator :-)
Thank you in advance for any help. And yep, I've tried already pwb.py
redirect br -family:xxx -lang:yyy -ns: and it always says that that
parameter is not recognized. Maybe I did something wrong?
Best regards, M.
Hello all,
Thanks to André Costa, we now have improved handling of bot passwords in
Pywikibot.
- In the new system, user-config.py contains your actual username, and the
botpassword is stored in a password file. This provides a cleaner
separation between the username on the one hand, and the logging in-logic
on the other.
- Documentation on the new system is available here:
https://www.mediawiki.org/wiki/Manual:Pywikibot/BotPasswords
- Current usage (with a username 'valhallasw@botname' in user-config.py)
should still work, but will show a warning message, suggesting to move to
the new system.
Please let us know if you encounter any issues!
Merlijn
Hi,
this is an annoying compat screen:
WARNING: Family file wikipedia contains version number 1.26wmf11, but it
should be 1.28.0-wmf.15
WARNING: Outdated family file wikipedia: namespace['hu'][90] is 'Téma', but
should be 'Szál'
WARNING: Outdated family file wikipedia: namespace['hu'][91] is 'Témavita',
but should be 'Szálvita'
WARNING: Missing namespace in family file wikipedia: namespace['hu'][2300]
(it is set to 'Gadget')
WARNING: Missing namespace in family file wikipedia: namespace['hu'][2301]
(it is set to 'Gadget talk')
WARNING: Missing namespace in family file wikipedia: namespace['hu'][2302]
(it is set to 'Gadget definition')
WARNING: Missing namespace in family file wikipedia: namespace['hu'][2303]
(it is set to 'Gadget definition talk')
WARNING: Missing namespace in family file wikipedia: namespace['hu'][2600]
(it is set to 'Téma')
Once the bot can determine the version namespaces on its own,
* why does it take version and namespaces from family
* why does it complain instead of working?
* what problem will I experience?
When I work on 2000 pages, the bot yields this almost important message at
every 60 pages and floods my screen. Also it spends my time with checking
this at every 60 pages. I never understood this behaviour.
--
Bináris
Hello fellow bot owners:
I wonder if there's any easy solution for these two tasks:
* <https://phabricator.wikimedia.org/T133311>
* <https://phabricator.wikimedia.org/T140624>
I'm no coder so I don't know what exactly needs to be modified to the
script's code to make it work. Ideally, this should be fixed for
everyone by uploading and having merged a patch in our gerrit repo.
Best regards,
MarcoAurelio
Hello,
Please see <https://phabricator.wikimedia.org/P3836>
I can't make the bot to update the interwiki links to that page. Maybe
it's a trivial thing I'm not being aware of, but I can't find what to
do more.
Best regards,
M.
Hello,
I've recently managed to get my bot run in the Tool Labs, which allows
me to finally execute some tasks regularly without my intervention.
I however find the instructions confusing, and I don't really know how
to create a cron.
My idea is to have the "redirects.sh" task to run each 24 hours. How
can I do it?
Best regards,
M
I must tell you that I still use compat, so tell me if any of these is
already implemented in core.
1.
I have a replacement task (replace.py + fixes.py, but as far as I remember,
it is powered by textlib).
I would like to exclude all the articles of countries. Now, it is a
difficult task to identify countries by syntactical analysis of the text
itself. Neither the word "country", nor categories give useful match.
Infoboxes are the best, but still far from good. How great would be an
exception based on Wikidata, which can state "this item is a country". If I
also want to exclude biographies, I could expand my exception list with
"this item is a person" statement.
2.
Of course, if I can except countries, I also would like to require. Now we
have only one kind of requirements, 'require-title'. We could have some
Wikidata-based requirements, too.
3.
At this point we should step over the long survived temporary solution,
that 'require-title' is built among exceptions.
A new 'requirements' dictionary should be invented with as many types as
there are in exceptions. First step is to refactor the existing
functionality, then implementing new ones.
4.
Logical relations should be extended. Now exceptions exclude a page from
text replacing if ANY of them matches, while reqiure-title requires ALL the
conditions to match. Reqire + ANY is much more important than require +
ALL; by taking out requirements from exceptions ot would by possible to
implement ANY (either by keeping ALL, which is of course the better way, or
instead). Combining except rules into ALL relations would also be useful
sometimes.
5.
And now I tell you my secret dream. I would like to create
exception/requiring functions that use the title of the page. If the title
occurs in a certain environment, except or incude the page into
replacements, or use a function for replacement that uses title. I cannot
pass the page title as a parameter. Tell me if it's only my dumbness.
6.
Another dream: replaceexcept should return not only the new text, but
number of replacements, too, as far as it can be defined and measured. I
don't expect perfect result here. Or it may be measured outside
replaceexcept. This would be good for statistical and other reasons, but
more use cases should be described in the future. I think measuring
effectiveness is one of them.
So this would ne the next generation of text replacements. And now I
finally found the correct subject at the last sentence of my message. :-)
--
Bináris
Hello.
I was following recent update on the list and tried to get bot passwords
for the time being. (I have few bots, and I don't want to maintain 4n bits
of random numbers, so I just decided to stick to BotPasswords, which just
have one stuff for each bot to write down.)
There's no guide whatsoever, even in [[mw:Manual:Bot Passwords]]
<https://www.mediawiki.org/wiki/Manual:Bot_passwords> nor Pywikibot manual,
what should be put. For example, I don't know if I should put just
'Revibot' for the username part, or I need to say "Revibot@Pywikibot" on
the user-config.py.
(I tried Revibot and the generated bot password, which gave me the
following error:
Password for user Revibot on wikidata:wikidata (no characters will be
shown):
Logging in to wikidata:wikidata as Revibot
ERROR: Login failed (Failed).
Any idea?
Thanks,
--
- revi
Wikimedian
[[m:User:-revi]] <https://meta.wikimedia.org/wiki/User:-revi>