Mechanical Edits/Mateusz Konieczny - bot account/fixing wikipedia tags pointing at redirects in Poland

From OpenStreetMap Wiki
Jump to navigation Jump to search

Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.


I, Mateusz Konieczny using my bot account


message via OSM I will respond also to PMs to the bot account. In both cases I will be notified about incoming PMs via email and notifications in OSM editors.


Fixing wikipedia tags pointing at redirects, so tag after edit points directly at an article.

Editing are restricted to Poland.


Wikipedia tags are not supposed to point at redirects. Also, redirects are more likely to become deleted or redirected to other pages than the article. In addition, sometimes page was renamed because old name was wrong or contained some kind of an error.

Fixing redirects is highly tedious and bot making this kind of edit is less likely to make mistakes than a human.


Depends on how many new redirects appear - depends on editing activity in OSM and Wikipedia.


  • Editing is limited to objects with both wikipedia=* and wikidata=* tag.
  • Editing is limited to wikipedia=* tags that link to a redirect that leads to page matching wikidata=* tag
  • Each changeset contains a single object
  • After every changeset bot sleeps for one minute

state before a mechanical edit:

state after a mechanical edit:

With changeset comment " [wikipedia=pl:Wielopole (województwo lubuskie)] to [wikipedia=pl:Wielopole (Sieniawa)], as current tag is a redirect and the new page matches present wikidata ". Changeset is also tagged with tags that mark it as automatic, provide link to discussion approving edit, link repository with source code etc


Approved by Polish OSM community at


This is reoccurring edit and may be made as soon as new redirects appear. At this moment triggering new edit requires human intervention and review so exact schedule is not predictable and bot may stop running at any moment.


Please write at .