Page MenuHomePhabricator

pywikibot cosmetic_changes.py to group the same references
Open, Needs TriagePublic

Description

Hello. I have been wondering if pywikibot cosmetic_changes.py can automatically group the same references in an article. For example, this edit was made by AutoWikiBrowser, showing that <ref>[http://sulbar.bps.go.id/newbackend2/pdf_publikasi/Provinsi_Sulawesi_Barat_Dalam_Angka_2016.pdf Sulawesi Barat Dalam Angka 2016], BPS</ref> was grouped in a ref name "Sulawesi Barat Dalam Angka 2016".

Looking at https://www.mediawiki.org/wiki/Manual:Pywikibot/cosmetic_changes.py does not state that pywikibot can handle such thing. If it is possible, please add this functionality to the bot script. Thanks!

Event Timeline

Rachmat04 created this task.Jun 9 2018, 5:52 AM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptJun 9 2018, 5:52 AM

See also this java code from WPCleaner that does this task. Note that script need to handle ref group names.

Vvjjkkii renamed this task from pywikibot cosmetic_changes.py to group the same references to mcbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from mcbaaaaaaa to pywikibot cosmetic_changes.py to group the same references.Jul 2 2018, 3:02 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.