[Pywikipedia-l] [ pywikipediabot-Feature Requests-1912001 ] Add a new option to interwiki.py

SourceForge.net noreply at sourceforge.net
Thu Feb 12 12:50:15 UTC 2009


Feature Requests item #1912001, was opened at 2008-03-11 16:29
Message generated for change (Comment added) made by purodha
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1912001&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
>Status: Pending
Priority: 5
Private: No
Submitted By: Marc-Etienne Vargenau (vargenau)
>Assigned to: Purodha B Blissenbach (purodha)
Summary: Add a new option to interwiki.py

Initial Comment:
Hello,

When working on years or birth categories for instance, I give a huge number of hints.

And I now these hint are right (when they exist).

If there is a wrong link somewhere (e.g. en:category:2000_deaths linking to fr:category:naissance_en_2000), I get a huge number of questions to which I always answer "1" (because the hint is proposed first).

So I propose to create a new option "-hintisright" (or something).

In that case, if there is a conflict between a hint and other page(s), the hint is selected automatically.



----------------------------------------------------------------------

>Comment By: Purodha B Blissenbach (purodha)
Date: 2009-02-12 12:50

Message:
I gave it a try with -hintsareright

If used, and a hint to an existing page is given, any interlanguage links
to the site of that hint are ignored, and a note "extra interwiki on hinted
site ignored" with the appropriate names is output to the console.
Hints can be given on the command line, in a file, etc. and interactively.
Before interactive hints are knows, i.e. concerning links in the starting
page, -hintsareright has no effect.

It also does not work on hints to sites where there are no pages found. If
you need that, it is an extra feature which, I believe, is a bit more
complicated to implement.

Not using -hintsareright should not make a difference to what we had
before, so I just submitted the change to svn as r 6341 for you to try it
out. Let me know if it fits your needs.
If so, this bug can be closed.

----------------------------------------------------------------------

Comment By: Marc-Etienne Vargenau (vargenau)
Date: 2009-02-03 13:36

Message:
Hello,

Thank you for your comment.
But I do not think the -localright parameter does what I need.
I do not want to modify the local page because I do not want to add links
that do not exist (yet).
I am 100% sure the hint "fr:category:décès_en_2000" (for
"en:category:2000_deaths") is right if it exists, but it might not exist
yet.

Since the code for -localright exists, maybe the code for -hintisright can
be easily implemented.

Best regards,


----------------------------------------------------------------------

Comment By: Purodha B Blissenbach (purodha)
Date: 2009-01-23 17:34

Message:
Hint: You can also solve the problem by inserting all the hints in the
starting page, and use the -localright parameter. If you are uncertain that
you got all, use -confirm and you will be able to interrupt the bot when it
comes accross a missing link which it tries to delete.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1912001&group_id=93107



More information about the Pywikipedia-l mailing list