update the bot to release r10622 or higher and try again with option
--page="m::Wikimedia Forum"
double colon or preleading colon now implies main namespace as exprected and was intended for page titles long time ago
Regards
xqt
----- Original Nachricht ----
Von: legoktm <legoktm.wikipedia(a)gmail.com>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 28.10.2012 03:10
Betreff: Re: [Pywikipedia-l] archivebot.py issues
> If you modify line 293 and remove the "defaultNamespace=3" it should work.
> Looks like that was introduced in
> pyrev:10149<https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10149>.
> Not sure if it was intentional or not.
> -- Legoktm
>
>
>
> On Sat, Oct 27, 2012 at 3:19 PM, Marco Aurelio <maurelio(a)gmx.es> wrote:
>
> > Hi,
> >
> > At Meta-Wiki we've
> detected<https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=43415
> 73#MiszaBot_has_stopped_archiving_main_ns_pages>that the bot that used to
> archive pages (MiszaBot) has suddenly stopped
> > from doing so on main namespace pages. I did tryed with my bot using the
> > archivebot.py script on a backlogged page, being [[m:Wikimedia Forum]]
> and
> > the result is:
> >
> > *Processing [[meta:Wikimedia Forum]]
> > Looking for: {{User:MiszaBot/config}} in [[meta:User talk:Wikimedia
> Forum]]
> > Error occured while processing page [[meta:Wikimedia Forum]]
> > Traceback (most recent call last):
> > File "C:\Python\pywikibot\archivebot.py", line 601, in main
> > Archiver = PageArchiver(pg, a, salt, force)
> > File "C:\Python\pywikibot\archivebot.py", line 376, in __init__
> > self.loadConfig()
> > File "C:\Python\pywikibot\archivebot.py", line 418, in loadConfig
> > raise MissingConfigError(u'Missing or malformed template')
> > MissingConfigError: Missing or malformed template
> >
> > C:\Python\pywikibot>*
> >
> > Something seems to have changed in the script's code, that now just looks
> > for Talk and User talk: namespaces.
> >
> > Can the script please be fixed so it works on all namespaces again? - A
> > fix would be deeply appreciated.
> >
> > Best regards, M.
> >
> > --
> > - Marco Aurelio
> > _______________________________________________
> > Pywikipedia-l mailing list
> > Pywikipedia-l(a)lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> >
> >
>
>
> --------------------------------
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
Hello,
Yes, removing "defaultNamespace=3" from the script works. I tested with the last version of the script and removed that line. The result is that the bot works OK.
Regards, M.
----- Mensaje original -----
De: legoktm
Enviado: 28-10-12 03:10
Para: Pywikipedia discussion list
Asunto: Re: [Pywikipedia-l] archivebot.py issues
If you modify line 293 and remove the "defaultNamespace=3" it should work. Looks like that was introduced in pyrev:10149 https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10149 . Not sure if it was intentional or not.
-- Legoktm
On Sat, Oct 27, 2012 at 3:19 PM, Marco Aurelio < maurelio(a)gmx.es > wrote:
Hi,
At Meta-Wiki we've detected https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=4341573#Misza… that the bot that used to archive pages (MiszaBot) has suddenly stopped from doing so on main namespace pages. I did tryed with my bot using the archivebot.py script on a backlogged page, being [[m:Wikimedia Forum]] and the result is:
Processing [[meta:Wikimedia Forum]]
Looking for: {{User:MiszaBot/config}} in [[meta:User talk:Wikimedia Forum]]
Error occured while processing page [[meta:Wikimedia Forum]]
Traceback (most recent call last):
File "C:\Python\pywikibot\archivebot.py", line 601, in main
Archiver = PageArchiver(pg, a, salt, force)
File "C:\Python\pywikibot\archivebot.py", line 376, in __init__
self.loadConfig()
File "C:\Python\pywikibot\archivebot.py", line 418, in loadConfig
raise MissingConfigError(u'Missing or malformed template')
MissingConfigError: Missing or malformed template
C:\Python\pywikibot>
Something seems to have changed in the script's code, that now just looks for Talk and User talk: namespaces.
Can the script please be fixed so it works on all namespaces again? - A fix would be deeply appreciated.
Best regards, M.
--
- Marco Aurelio
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
- Marco Aurelio
Hi,
At Meta-Wiki we've detected https://meta.wikimedia.org/w/index.php?title=Meta:Babel&oldid=4341573#Misza… that the bot that used to archive pages (MiszaBot) has suddenly stopped from doing so on main namespace pages. I did tryed with my bot using the archivebot.py script on a backlogged page, being [[m:Wikimedia Forum]] and the result is:
/Processing [[meta:Wikimedia Forum]]
Looking for: {{User:MiszaBot/config}} in [[meta:User talk:Wikimedia Forum]]
Error occured while processing page [[meta:Wikimedia Forum]]
Traceback (most recent call last):
File "C:\Python\pywikibot\archivebot.py", line 601, in main
Archiver = PageArchiver(pg, a, salt, force)
File "C:\Python\pywikibot\archivebot.py", line 376, in __init__
self.loadConfig()
File "C:\Python\pywikibot\archivebot.py", line 418, in loadConfig
raise MissingConfigError(u'Missing or malformed template')
MissingConfigError: Missing or malformed template
C:\Python\pywikibot>/
Something seems to have changed in the script's code, that now just looks for Talk and User talk: namespaces.
Can the script please be fixed so it works on all namespaces again? - A fix would be deeply appreciated.
Best regards, M.
--
- Marco Aurelio
Hi,
Thank you very much.
Regards, M.
----- Mensaje original -----
De: info(a)gno.de
Enviado: 21-10-12 15:58
Para: pywikipedia-l(a)lists.wikimedia.org
Asunto: Aw: [Pywikipedia-l] Please update family file for es.wikibooks
Done in r10596.
Greetings
xqt
----- Original Nachricht ----
Von: Marco Aurelio <maurelio(a)gmx.es>
An: pywikipedia-l(a)lists.wikimedia.org
Datum: 21.10.2012 00:04
Betreff: [Pywikipedia-l] Please update family file for es.wikibooks
> Hello,
>
> We've removed[1] some unused namespaces in the ES wikibooks project:
>
> Getting 1 page from wikibooks:es...
> WARNING: Family file wikibooks includes namespace['es'][102], but it should
> be removed (namespace doesn't exist in the site)
> WARNING: Family file wikibooks includes namespace['es'][103], but it should
> be removed (namespace doesn't exist in the site)
>
> Can you please make the appropiate changes to the files?
>
> Thank you very much in advance.
>
> Best regards.
>
> [1]: <https://bugzilla.wikimedia.org/show_bug.cgi?id=40838>
>
> --
> - Marco Aurelio
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
--
- Marco Aurelio
Hello,
We've removed[1] some unused namespaces in the ES wikibooks project:
Getting 1 page from wikibooks:es...
WARNING: Family file wikibooks includes namespace['es'][102], but it should be removed (namespace doesn't exist in the site)
WARNING: Family file wikibooks includes namespace['es'][103], but it should be removed (namespace doesn't exist in the site)
Can you please make the appropiate changes to the files?
Thank you very much in advance.
Best regards.
[1]: <https://bugzilla.wikimedia.org/show_bug.cgi?id=40838>
--
- Marco Aurelio
>
>
> From: masti <mastigm(a)gmail.com>
> To: pywikipedia-l(a)lists.wikimedia.org
> Cc:
> Date: Sat, 06 Oct 2012 23:25:11 +0200
> Subject: Re: [Pywikipedia-l] add_text.py feature that is sometimes a bug
> with stub templates
> On 10/04/2012 09:12 PM, Max Klein wrote:
>
>> Hello I see that Filnik has written add_text.py for pywikipedia bot. My
>> bot [[en:user:VIAFbot]] calls this. It's an extremely useful function,
>> but there is a problem. add_text.py puts all the templates that are
>> below the categories above the categories when I call it [see
>> http://en.wikipedia.org/w/**index.php?title=David_K._**
>> Shipler&diff=next&oldid=**455476445<http://en.wikipedia.org/w/index.php?title=David_K._Shipler&diff=next&oldid=…>
>> <http://en.wikipedia.org/w/**index.php?title=David_K._**
>> Shipler&diff=next&oldid=**455476445<http://en.wikipedia.org/w/index.php?title=David_K._Shipler&diff=next&oldid=…>
>> >].
>> On English Wikipedia that's a problem because the
>> [[en:Wikipedia:Manual_of_**Style/Layout#Order_of_**sections|English
>> manual
>> of style]] says that stub templates go below categories.
>> Can you think of a way to patch this?
>> Thanks,
>> Max
>>
>
> there is -noreorder parameter to prevent this.
> Have you tried it?
>
> masti
>
> Hi Masti,
I did see that you can use -noreorder. The problem with no reorder is that
then you are just inserting at the very last line of the page. But I
finally understood what add_text does
The thing that is misleading is that it doesn't "insert above category and
language links but below the rest of the text" like it says. It's true that
add_text has that effect when pages follow the order of
1. content
2. templates
3. categories
4. language links
but in English Wikipedia there are sometimes things stored inbetween
categories and language links ( I agree that the practice of doing that is
bad).
In fact what add_text does is remove the categories and language links,
insert text at the end, and then paste back on categories and language
links. That means that if there are other things inbetween categories and
language links then they will jump up in order.
I refactored my code to stop using add_text and am running using a modified
version of replaceExcept to insert text via big switch statement searching
for the first category, or first {{persondata}}.
Thanks,
Max
Hello I see that Filnik has written add_text.py for pywikipedia bot. My bot
[[en:user:VIAFbot]] calls this. It's an extremely useful function, but
there is a problem. add_text.py puts all the templates that are below the
categories above the categories when I call it [see
http://en.wikipedia.org/w/index.php?title=David_K._Shipler&diff=next&oldid=…].
On English Wikipedia that's a problem because the
[[en:Wikipedia:Manual_of_Style/Layout#Order_of_sections|English manual of
style]] says that stub templates go below categories.
Can you think of a way to patch this?
Thanks,
Max
(Dutch below)
After the successful hackathon in 2012 it's time for the Wikimedia
Nederland Hackathon 2012. The Hackathon will take place on Saturday 10
November, the day after our annual Wikimedia Nederland Conference.
The approach is the same as last year: We'll arrange a location, food
and drinks. You all come with your laptops and good ideas. Some possible
topics:
* TS-reports
* Good old Mediawiki
* Pywikipedia
* Wikidata
* GLAMwiki toolset project
* Open Cultuur Data
* ...
This hackathon doesn't aim, like the Berlin Hackathon, to be a global
Hackathon. It aims to be more of a regional hackathon. We have a very
limited budget for travel and accommodation
More information and registration at
https://nl.wikimedia.org/wiki/Hackathon_2012/en
------------
Na de succesvolle hackathon in 2011 is het op zaterdag 10 november tijd
voor de Wikimedia Nederland Hackathon 2012. Dit is de dag na de
Wikimedia Conferentie Nederland.
De opzet zal hetzelfde zijn als vorig jaar: Wij zorgen voor een locatie,
hapjes en drankjes. Jullie komen met de laptops en de goede ideeën. Een
aantal mogelijke onderwerpen:
* TS-reports
* Good old Mediawiki
* Pywikipedia
* Wikidata
* GLAMwiki toolset project
* Open Cultuur Data
* ...
Deze Hackathon richt zich niet, zoals de Hackathon in Berlijn, op alle
ontwikkelaars wereldwijd, maar heeft een meer regionaal karakter. We
hebben dan ook een zeer beperkt budget voor reizen en accommodatie.
Meer informatie en inschrijven op
https://nl.wikimedia.org/wiki/Hackathon_2012
Maarten Dammers
Wikimedia Nederland