<p></p>
<p><b>@francois2metz</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2621#discussion_r423217513">script/misc/update-tag2link</a>:</p>
<pre style='color:#555'>> +  end
+
+  if res.code == "200"
+    JSON.parse(res.body)["results"]["bindings"]
+  else
+    puts "HTTP code for #{url} is #{res.code}"
+    exit 1
+  end
+end
+
+filecontent = results.flatten({}) do |memo, result|
+  memo[result["OSM_key"]["value"].slice("Key:".size...)] = result["formatter_URL"]["value"]
+  memo
+end.to_yaml
+
+File.write(ARGV[0], filecontent)
</pre>
<p>Done.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2621#discussion_r423217513">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKIXXSP6S77KLYMLY3RRA353ANCNFSM4M43YMWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLKQZKTR4KFNX4WNFD3RRA353A5CNFSM4M43YMWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODBTPFFQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2621#discussion_r423217513",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2621#discussion_r423217513",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>