Hello, the nightly files sometimes doesn't work properly due to different
issues. Sometimes it's a complicated bug but usually it can be fixed easily.
So I put the commands of nightly creator in github [1] and change cron of
pywikibot service to clone this repo and follow it i.e. the nightly creator
is automatically loads commands from this repo.
Please report bugs in phabricator (and assign it to me) and pull requests
are welcome. pywikibot people like John, Kunal, Merlijn, and Maarten also
can push changes and merge pull requests too. If you want to be an owner
and I forgot to add you, please do tell me.
[1]: https://github.com/Ladsgroup/Pywikibot-nightly-creator
Best
The core and compat codebase have code to support SVN pre 1.7. I have
tested it with 1.6, and it looks *roughly* correct, but our code does
not work, and has not worked since Feb 2014 as detailed at
https://phabricator.wikimedia.org/T95077
In addition, SVN 1.6 is no longer supported by the SVN developers.
As a result, I doubt that anyone is relying on support for SVN 1.6 or
earlier, and I would like to remove support for SVN pre 1.7.
Please yell out if there is a reason to keep supporting SVN 1.6 ...?
--
John Vandenberg
I've been working on html2unicode in the last days and I stumbled upon
the fact that a & also works as a normal ampersand, so that
& for example gets converted into &. Now the commit which
introduced it into core (fc61025 [1]) is not really descriptive so I
searched in compat's code and found the corresponding commit f97dfb0
[2].
There it links to the discussion on @xqt's talk page [3] which doesn't
really explain what is happening there. The API never returns HTML
entities unless it's the content of a page. I've been testing [4] such
a link and [[&]] does work but not [[&]]. Also the entitey
gets properly encoded, but [[ ]] also only once.
My question here is why is it necessary and especially in core which
only does API requests which shouldn't suffer from such a problem it
could be changed probably. The only reason I see if something is
decoding text improperly and converts into   which
shouldn't be our concern.
Fabian
[1]: https://github.com/wikimedia/pywikibot-core/commit/fc6102527e4c556cd77aa877…
[2]: https://git.wikimedia.org/blobdiff/pywikibot%2Fcompat.git/f97dfb0d1ca49751c…
[3]: https://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion%3AXqt&action…
[4]: https://en.wikipedia.org/wiki/User:XZise/linktest
I have a bunch of breaking changes I'd like to make to the framework's
API; some of them are already in Gerrit ([1]
<https://gerrit.wikimedia.org/r/178579>, [2]
<https://gerrit.wikimedia.org/r/178647>).
John Vandenberg said they can be merged after the 2.0 release, but I
don't see a schedule yet. How long are we supposed to wait?
Hi,
I am a student at International Institute of Information Technology
Hyderabad, India. I plan to participate in GSoC this year. I was browsing
the potential projects under Mediawiki and found Pywikibot: Implement
support for OAuth <https://phabricator.wikimedia.org/T74065> project really
interesting and related to my domain of interest. I would like to apply for
the project.
I have a very good understanding of the mediawiki architecture including
the API. I had developed a mediawiki extension to support Peer Evaluation
<https://github.com/akashagarwal/peer-evaluation> in wiki courses for the
OERu as part of last year's GSoC. It consists of simple API's, tags and
some javascript. I am also about to complete another extension for CEMCA
<http://www.cemca.org.in/>in which I am adapting the TIPS framework for
quality assurance
<http://www.cemca.org.in/publicationhome/quality-assurance-guidelines-open-e…>
for wiki based articles.
It would be great if you could help me on how to proceed.
​
​Mediawiki user page: https://www.mediawiki.org/wiki/User:Akashagarwal
IRC nick: akashagarwal​
Github: https://github.com/akashagarwal
--
Best Regards,
Akash Agarwal
IIIT Hyderabad
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