Happy Monday,
There are strange people who make such links (kindof urlencoded?):
[[Második világháború#Partrasz.C3.A1ll.C3.A1s Szic.C3.ADli.C3.A1ban
.28Huskey hadm.C5.B1velet.29|Huskey hadműveletben]]
So the section title must have been copied from the URL.
Do we have a ready tool to fix these?
--
Bináris
Hello all
>From one of my assignments as a bot operator I have some code which
does template parsing and general text parsing (e.g. Image/File tags).
It is not using regex and thus able to correctly parse nested
templates and other such nasty things. I have written those as library
classes and written tests for them which cover almost all of the code.
I would now really like to contribute that code back to the community.
Would you be interested in adding this code to the pywikibot
framework? If yes, can I send the code to someone for code review or
how do you usually operate?
Greetings
Hannes
PS: wiki userpage is http://en.wikipedia.org/wiki/User:Hannes_R%C3%B6st
Hi,
- - - - English:
I have a locally installed MediaWiki and would like to use pywikibot there.
I'm using Python 2.7. I could already use the bot at Wikipedia. Local I
still do not get the software running.
I have the contents of the family file attached below. Maybe someone knows
how the file should look to get the software working.
Either the family file hasn't been found or "a" software stopped the
access. I don't really understand the error messages.
Does anybody runs the pywikibot on his local installed MediaWiki and could
give me an example of a runnable family-file!? This would be fine.
Thanks!
Yours Pixewakb
- - - - German:
Ich habe ein lokal installiertes MediaWiki und möchte gern pywikibot hier
nutzen. Ich verwende Python 2.7. Den Bot konnte ich bei Wikipedia schon
nutzen. Lokal habe ich die Software noch nicht zum Laufen bekommen.
Ich habe den Inhalt der family-Datei unten angefügt. Vielleicht weiß
jemand, wie die Datei aussehen muss, um die Software in Betrieb zu nehmen.
Entweder wurde bislang die family-Datei nicht gefunden oder aber die
Software stoppte den Zugriff. Ich werde aus den Fehlermeldungen nicht
schlau.
Betreibt jemand den Bot lokal und könnte mir eine Kopie oder ein Beispiel
einer funktionierenden family-Datei geben???
Besten Dank
Pixewakb
- - - - Content of my TEST_family.py-file:
# -*- coding: utf-8 -*-
import family
# Put a short project description here.
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'TEST' # Set the family name; this should be the same
as in the filename.
self.langs = {
'de': 'localhost', # Put the hostname here.
}
# Translation used on all wikis for the different namespaces.
# Most namespaces are inherited from family.Family.
# Check the family.py file (in main directory) to see the standard
# namespace translations for each known language.
# You only need to enter translations that differ from the default.
self.namespaces[4] = {
'_default': u'TEST', # Specify the project namespace here.
}
self.namespaces[5] = {
'_default': u'TEST Diskussion:', # Specify the talk page of the
project namespace here.
}
def version(self, code):
return "1.22.6" # The MediaWiki version used. Not very important
in most cases.
def scriptpath(self, code):
return '/testbereich/mediawiki' # The relative path of index.php,
api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w,
# depending on the folder where your mediawiki program
# is located.
# Note: Do not _include_ index.php, etc.
- - - - URL to my wiki
http://localhost/testbereich/mediawiki/index.php/Spezial:Beobachtungsliste
Hi,
I've downloaded PyWikibot using the commands:
|git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git|
|git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/compat.git|
I'm running a local Wiki (at http://localhost:127.0.0.1/mediawiki to be
precise) on 64-bit Windows 7 and I haven't the foggiest of how to set up
this program for it. I know I need to set up user_config.py for core and
compat but as this Wiki isn't on the accepted Wiki families I am stuck.
I am a programming noob so if you could boil it down into simple things
for me to do that'd be very helpful.
Thanks for your time,
Brenton
Hi,
About a month ago I transferred from a Wikia wiki
(health-and-medicine.wikia.com) to a local wiki and much of what I did
was I went to Special:Export on Wikia, entered major categories and
exported all pages belonging to these categories and then went to
Special:Import on my local wiki to import the XML files the Wikia export
had generated (XML dumps weren't a viable option as Special:Import
couldn't handle the massive file generated from the dumps). This Wikia
wiki has several hundred pictures that I still need to upload to my
local wiki and I was wondering if there was a Pywiki script that could
do this job for me, or at least do it for files that are linked in the
pages I have so far imported (i.e., files mentioned in broken file
links). I have user_config.py already setup for working with these two
wikis (i.e., content:
|# -*- coding: utf-8 -*-|||
|||family = 'local'|||
|||mylang = 'en'|||
|||usernames['hmwiki']['hmwiki'] = u'MyFirstBot'|||
|||usernames['local']['en'] = u'MyFirstBot'|
where hmwiki has been defined via generate_family_file.py) if you're
wondering.
I am a noob when it comes to python and Pywikibot so if you have an
answer I'd appreciate it if you could boil it down into simple lines of
code to run in the command prompt (I'm on 64 bit Windows 7 SP1).
Thanks for your time,
Brenton
Hey,
There are about 200 open patches in pywikibot right now, huge part of them
are obsolete, really problematic, or redundant patches.
Please revise your old patches and abandon ones that are not needed anymore.
Best
--
Amir
FYI
-------- Messaggio inoltrato --------
Oggetto: [Xmldatadumps-l] Your comments needed (long term dumps rewrite?)
Data: Thu, 19 Feb 2015 12:30:01 +0200
Mittente: Ariel Glenn WMF <ariel(a)wikimedia.org>
A: Xmldatadumps-l(a)lists.wikimedia.org
The MediaWiki Core team has opened a discussion about getting more
involved in and maybe redoing the dumps infrastructure. A good starting
point is to understand how folks use the dumps already or want to use
them but can't, and some questions about that are listed here:
https://www.mediawiki.org/wiki/Wikimedia_MediaWiki_Core_Team/Backlog/Improv…
I've added some notes but please go weigh in. Don't be shy about what
you do/what you need, this is the time to get it all on the table.
Ariel