Last modified: 2014-09-18 09:08:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56547, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54547 - Add sync.py, linkreports.py and phpfrontforpywikibot to the main repo
Add sync.py, linkreports.py and phpfrontforpywikibot to the main repo
Status: NEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
compat-(1.0)
All All
: Lowest enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 22:29 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-18 09:08 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-09-24 22:29:22 UTC
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.
\-------------------
Comment 1 Amir Ladsgroup 2014-07-24 07:44:32 UTC
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
Comment 2 John Mark Vandenberg 2014-09-18 09:08:55 UTC
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.py
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/master/scripts%2Fweblinkchecker.py

sync.py is roughly like transferbot.py in core

http://git.wikimedia.org/blob/pywikibot%2Fcore.git/master/scripts%2Ftransferbot.py

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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links