https://bugzilla.wikimedia.org/show_bug.cgi?id=54547
Web browser: --- Bug ID: 54547 Summary: sync.py, linkreports.py and phpfrontforpywikibot Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/609/ Reported by: valhallasw Created on: 2013-04-13 21:11:43 Subject: sync.py, linkreports.py and phpfrontforpywikibot Original description: See http://lists.wikimedia.org/pipermail/pywikipedia-l/2013-March/007776.html and http://lists.wikimedia.org/pipermail/pywikipedia-l/2013-March/007785.html
------------ I have been working on some additions to the pywikipediabot framework. I'd be happy if my code could be useful to others.
sync.py helps synchronizing different wikis. It goes through a bunch of namespaces and creates an overview of pages that are different, this is already useful for Templates and MediaWiki but especially useful when dealing with semantic mediawiki, where a lot of the functionality lives in namespaces such as Property, Type and Form.
linkreports.py creates a page with a table of broken links, first date, last date and error message.
I also wrote a little PHP frontend that lets people run a pywikipediabot replace script (it's for folks who can't or don't want to use anything on a commandline). This can probably live on its own on github, but it might be a bit too custom at this point and I'd like to have some comments on it.
This PHP frontend is available at https://github.com/guaka/phpfrontforpywikibot It's pretty rough still but releasing it forces me to think about the public release when adding more functionality.
I'm not sure how to proceed with getting sync.py and linkreports.py in the official repo. Shall I just put them up on github so you can take a look? I'm looking forward to your ideas.
Kasper ---------------------- On Mon, Mar 11, 2013 at 11:10 AM, Kasper Souren <kasper.souren@gmail.com> wrote: > I'm not sure how to proceed with getting sync.py and linkreports.py in > the official repo. Shall I just put them up on github so you can take > a look? I'm looking forward to your ideas.
Didn't hear anything back in a week so I just put stuff up here: https://github.com/guaka/pywikibot-extras
Still needs a bit of work to make it more generic but sync.py could already be useful as is. -------------------
https://bugzilla.wikimedia.org/show_bug.cgi?id=54547
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/patches/609
https://bugzilla.wikimedia.org/show_bug.cgi?id=54547
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Lowest CC| |ladsgroup@gmail.com Summary|sync.py, linkreports.py and |Add sync.py, linkreports.py |phpfrontforpywikibot |and phpfrontforpywikibot to | |the main repo Severity|normal |enhancement
--- Comment #1 from Amir Ladsgroup ladsgroup@gmail.com --- Don't need to import deadlinkreport.py (exists under name of weblinkchecker.py)
Other scripts looks good and standard to import even though I'm not sure what they exactly can do. I suggest to move it under bots/Kasper
https://bugzilla.wikimedia.org/show_bug.cgi?id=54547
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|General |Other scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=54547
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kasper.souren@gmail.com Version|unspecified |compat (1.0)
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- The scripts are compat scripts.
As Amir has said, weblinkchecker.py is a rough equivalent of deadlinkreport.py, but maybe there are some features which can be added
http://git.wikimedia.org/blob/pywikibot%2Fcompat.git/master/weblinkchecker.p... http://git.wikimedia.org/blob/pywikibot%2Fcore.git/master/scripts%2Fweblinkc...
sync.py is roughly like transferbot.py in core
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/master/scripts%2Ftransfer...
interfamily.py looks like it creates interwiki links between different families where the titles match. It is simple and effective, while 'interwiki.py' is large and scary and may not even offer similar functionality to this 'interfamily.py' script.
IMO Kasper should submit interfamily.py to the compat repository , but without the hardcoded families list 'full_mapping' of course.
pywikipedia-bugs@lists.wikimedia.org