Page MenuHomePhabricator

Port inline_images.py to core
Open, LowPublic

Description

Possibily move it out of pywikibot as it's fairly special-purpose.


Version: core-(2.0)
Severity: enhancement

Details

Reference
bz64870

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:15 AM
bzimport added a project: Pywikibot-Scripts.
bzimport set Reference to bz64870.
bzimport added a subscriber: Unknown Object (????).

If not in pywikibot/scripts, where to put it?

(In reply to Ricordisamoa from comment #1)

If not in pywikibot/scripts, where to put it?

in a submodule in bots like this:
http://git.wikimedia.org/summary/pywikibot%2Fbots%2FCommonsDelinker.git

jayvdb added a comment.Dec 5 2014, 3:30 AM

this is a tiny script, which is mostly a wrapper around weblinkchecker and upload bots , but the upload part isnt functional. And this is very special purpose, as it is only useful for wikis which have enabled $wgAllowExternalImages, which is a privacy violation as the external website can see IP addresses and in some instances also determine the wiki username of the IP address. It is more common for wikis to be using UseInstantCommons

IMO the functionality in this script should be split.

weblinkchecker in core should be enhanced so that:

  1. it can be easily told to only look for inline links of a specific type (i.e. image links)
  2. the image downloads and metadata are easy to access.

upload in core should be enhanced to upload a batch of images using metadata extracted by weblinkchecker

then the compat script ported to use the above enhancements, and put in a new pywikibot-contrib repository and effectively allowed to rot.

jayvdb lowered the priority of this task from Medium to Low.Dec 5 2014, 4:15 AM
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 16 2016, 9:06 PM