Page MenuHomePhabricator

Port inline_images.py to core
Open, LowPublicFeature

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 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

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 (????).
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM