-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathget.sh
executable file
·479 lines (441 loc) · 34.2 KB
/
get.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
#!/bin/bash
cmds=()
cmds2=()
n=0
d=0
for i in svg w20 w40 w80 w160 w320 w640 w1280 w2560 h20 h24 h40 h60 h80 h120 h240; do
[ ! -d $i ] && mkdir $i
done
get() {
cmds+=("dl $1 $2
")
cmds2+=("resize $2
")
((n=n+1))
}
dl() {
if [ -f svg/$2.svg ]; then
printf "\rFound \x1b[33m$2\x1b[0m, skipping "
else
curl $1 -o svg/$2.svg -s &&
printf "\rDownloading \x1b[33m$2\x1b[0m "
fi
}
export -f dl
resize() {
printf "\rConverting \x1b[33m$1\x1b[0m.svg to sizes "
for i in 20 40 80 160 320 640 1280 2560; do
[ ! -f w$i/$1.png ] && inkscape -w $i svg/$1.svg -o w$i/$1.png
done
for i in 20 24 40 60 80 120 240; do
[ ! -f h$i/$1.png ] && inkscape -h $i svg/$1.svg -o h$i/$1.png
done
}
export -f resize
# Countries
for i in $(curl https://restcountries.com/v3.1/all -s | jq '.[].cca2' -r | tr '[:upper:]' '[:lower:]'); do
[ "$i" != "aq" ] && [ "$i" != "mq" ] && [ "$i" != "nu" ] && get https://flagcdn.com/$i.svg $i
done
# Flagcdn Fixes
get https://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_the_Territorial_Collectivity_of_Martinique.svg mq
get https://upload.wikimedia.org/wikipedia/commons/f/f8/True_South_Antarctic_Flag.svg aq
get https://upload.wikimedia.org/wikipedia/commons/0/01/Flag_of_Niue.svg nu
# Argentina
get https://upload.wikimedia.org/wikipedia/commons/f/f5/Bandera_de_la_Ciudad_de_Buenos_Aires.svg ar-c
get https://upload.wikimedia.org/wikipedia/commons/1/15/Bandera_de_la_Provincia_de_Buenos_Aires.svg ar-b
get https://upload.wikimedia.org/wikipedia/commons/7/7b/Bandera_de_la_Provincia_de_Catamarca.svg ar-k
get https://upload.wikimedia.org/wikipedia/commons/3/33/Bandera_de_la_Provincia_del_Chaco.svg ar-h
get https://upload.wikimedia.org/wikipedia/commons/8/88/Bandera_de_la_Provincia_del_Chubut.svg ar-u
get https://upload.wikimedia.org/wikipedia/commons/f/f6/Bandera_de_la_Provincia_de_C%C3%B3rdoba_2014.svg ar-x
get https://upload.wikimedia.org/wikipedia/commons/4/46/Bandera_de_la_Provincia_de_Corrientes.svg ar-w
get https://upload.wikimedia.org/wikipedia/commons/5/5b/Bandera_de_la_Provincia_de_Entre_R%C3%ADos.svg ar-e
get https://upload.wikimedia.org/wikipedia/commons/4/42/Bandera_de_la_Provincia_de_Formosa.svg ar-p
get https://upload.wikimedia.org/wikipedia/commons/c/c9/Bandera_de_la_Provincia_de_Jujuy.svg ar-y
get https://upload.wikimedia.org/wikipedia/commons/8/81/Bandera_de_la_Provincia_de_La_Pampa.svg ar-l
get https://upload.wikimedia.org/wikipedia/commons/6/60/Bandera_de_la_Provincia_de_La_Rioja.svg ar-f
get https://upload.wikimedia.org/wikipedia/commons/7/7c/Bandera_de_la_Provincia_de_Mendoza.svg ar-m
get https://upload.wikimedia.org/wikipedia/commons/c/ce/Bandera_de_la_Provincia_de_Misiones.svg ar-n
get https://upload.wikimedia.org/wikipedia/commons/b/bc/Bandera_de_la_Provincia_de_Neuqu%C3%A9n.svg ar-q
get https://upload.wikimedia.org/wikipedia/commons/5/5d/Bandera_de_la_Provincia_del_R%C3%ADo_Negro.svg ar-r
get https://upload.wikimedia.org/wikipedia/commons/6/6a/Bandera_de_la_Provincia_de_Salta.svg ar-a
get https://upload.wikimedia.org/wikipedia/commons/b/b0/Flag_of_the_San_Juan_Province.svg ar-j
get https://upload.wikimedia.org/wikipedia/commons/0/0e/Bandera_de_la_Provincia_de_San_Luis.svg ar-d
get https://upload.wikimedia.org/wikipedia/commons/4/45/Bandera_de_la_Provincia_de_Santa_Cruz.svg ar-z
get https://upload.wikimedia.org/wikipedia/commons/8/84/Bandera_de_la_Provincia_de_Santa_Fe.svg ar-s
get https://upload.wikimedia.org/wikipedia/commons/0/07/Bandera_de_la_Provincia_de_Santiago_del_Estero.svg ar-g
get https://upload.wikimedia.org/wikipedia/commons/9/94/Bandera_de_la_Provincia_de_Tierra_del_Fuego.svg ar-v
get https://upload.wikimedia.org/wikipedia/commons/c/ce/Bandera_de_la_Provincia_de_Tucum%C3%A1n.svg ar-t
# Australia
get https://upload.wikimedia.org/wikipedia/commons/4/46/Flag_of_Tasmania.svg au-tas
get https://upload.wikimedia.org/wikipedia/commons/f/fd/Flag_of_South_Australia.svg au-sa
get https://upload.wikimedia.org/wikipedia/commons/b/b7/Flag_of_the_Northern_Territory.svg au-nt
get https://upload.wikimedia.org/wikipedia/commons/8/8c/Flag_of_the_Australian_Capital_Territory.svg au-act
get https://upload.wikimedia.org/wikipedia/commons/a/a5/Flag_of_Western_Australia.svg au-wa
get https://upload.wikimedia.org/wikipedia/commons/0/08/Flag_of_Victoria_%28Australia%29.svg au-vic
get https://upload.wikimedia.org/wikipedia/commons/0/04/Flag_of_Queensland.svg au-qld
get https://upload.wikimedia.org/wikipedia/commons/0/00/Flag_of_New_South_Wales.svg au-nsw
# Austria
get https://upload.wikimedia.org/wikipedia/commons/2/29/Flag_of_Burgenland.svg at-1
get https://upload.wikimedia.org/wikipedia/commons/9/9b/Flag_of_Carinthia.svg at-2
get https://upload.wikimedia.org/wikipedia/commons/0/06/Flag_of_Lower_Austria.svg at-3
get https://upload.wikimedia.org/wikipedia/commons/9/97/Flag_of_Tirol_and_Upper_Austria.svg at-4
get https://upload.wikimedia.org/wikipedia/commons/b/bf/Flag_of_Salzburg%2C_Vienna%2C_Vorarlberg.svg at-5
get https://upload.wikimedia.org/wikipedia/commons/e/ed/Flag_of_Styria.svg at-6
get https://upload.wikimedia.org/wikipedia/commons/2/25/Flag_of_Tirol_%28state%29.svg at-7
get https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Vorarlberg_%28state%29.svg at-8
get https://upload.wikimedia.org/wikipedia/commons/b/bf/Flag_of_Salzburg%2C_Vienna%2C_Vorarlberg.svg at-9
# Andorra
get https://upload.wikimedia.org/wikipedia/commons/6/6a/Flag_of_Andorra_la_Vella.svg ad-07
get https://upload.wikimedia.org/wikipedia/commons/8/87/Flag_of_Canillo.svg ad-02
get https://upload.wikimedia.org/wikipedia/commons/f/f8/Flag_of_Encamp.svg ad-03
get https://upload.wikimedia.org/wikipedia/commons/4/41/Bandera_de_Escaldes-Engordany.svg ad-08
get https://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_La_Massana.svg ad-04
get https://upload.wikimedia.org/wikipedia/commons/5/5e/Flag_of_Ordino.svg ad-05
get https://upload.wikimedia.org/wikipedia/commons/0/02/Bandera_de_San_Juli%C3%A1n_de_Loria.svg ad-06
# Brazil
get https://upload.wikimedia.org/wikipedia/commons/4/4c/Bandeira_do_Acre.svg br-ac
get https://upload.wikimedia.org/wikipedia/commons/8/88/Bandeira_de_Alagoas.svg br-al
get https://upload.wikimedia.org/wikipedia/commons/0/0c/Bandeira_do_Amap%C3%A1.svg br-ap
get https://upload.wikimedia.org/wikipedia/commons/6/6b/Bandeira_do_Amazonas.svg br-am
get https://upload.wikimedia.org/wikipedia/commons/2/28/Bandeira_da_Bahia.svg br-ba
get https://upload.wikimedia.org/wikipedia/commons/2/2e/Bandeira_do_Cear%C3%A1.svg br-ce
get https://upload.wikimedia.org/wikipedia/commons/3/3c/Bandeira_do_Distrito_Federal_%28Brasil%29.svg br-df
get https://upload.wikimedia.org/wikipedia/commons/4/43/Bandeira_do_Esp%C3%ADrito_Santo.svg br-es
get https://upload.wikimedia.org/wikipedia/commons/b/be/Flag_of_Goi%C3%A1s.svg br-go
get https://upload.wikimedia.org/wikipedia/commons/4/45/Bandeira_do_Maranh%C3%A3o.svg br-ma
get https://upload.wikimedia.org/wikipedia/commons/0/0b/Bandeira_de_Mato_Grosso.svg br-mt
get https://upload.wikimedia.org/wikipedia/commons/6/64/Bandeira_de_Mato_Grosso_do_Sul.svg br-ms
get https://upload.wikimedia.org/wikipedia/commons/f/f4/Bandeira_de_Minas_Gerais.svg br-mg
get https://upload.wikimedia.org/wikipedia/commons/0/02/Bandeira_do_Par%C3%A1.svg br-pa
get https://upload.wikimedia.org/wikipedia/commons/b/bb/Bandeira_da_Para%C3%ADba.svg br-pb
get https://upload.wikimedia.org/wikipedia/commons/9/93/Bandeira_do_Paran%C3%A1.svg br-pr
get https://upload.wikimedia.org/wikipedia/commons/5/59/Bandeira_de_Pernambuco.svg br-pe
get https://upload.wikimedia.org/wikipedia/commons/3/33/Bandeira_do_Piau%C3%AD.svg br-pi
get https://upload.wikimedia.org/wikipedia/commons/7/73/Bandeira_do_estado_do_Rio_de_Janeiro.svg br-rj
get https://upload.wikimedia.org/wikipedia/commons/3/30/Bandeira_do_Rio_Grande_do_Norte.svg br-rn
get https://upload.wikimedia.org/wikipedia/commons/6/63/Bandeira_do_Rio_Grande_do_Sul.svg br-rs
get https://upload.wikimedia.org/wikipedia/commons/f/fa/Bandeira_de_Rond%C3%B4nia.svg br-ro
get https://upload.wikimedia.org/wikipedia/commons/9/98/Bandeira_de_Roraima.svg br-rr
get https://upload.wikimedia.org/wikipedia/commons/1/1a/Bandeira_de_Santa_Catarina.svg br-sc
get https://upload.wikimedia.org/wikipedia/commons/2/2b/Bandeira_do_estado_de_S%C3%A3o_Paulo.svg br-sp
get https://upload.wikimedia.org/wikipedia/commons/b/be/Bandeira_de_Sergipe.svg br-se
get https://upload.wikimedia.org/wikipedia/commons/f/ff/Bandeira_do_Tocantins.svg br-to
# Canada
get https://upload.wikimedia.org/wikipedia/commons/f/f5/Flag_of_Alberta.svg ca-ab
get https://upload.wikimedia.org/wikipedia/commons/b/b8/Flag_of_British_Columbia.svg ca-bc
get https://upload.wikimedia.org/wikipedia/commons/c/c4/Flag_of_Manitoba.svg ca-mb
get https://upload.wikimedia.org/wikipedia/commons/f/fb/Flag_of_New_Brunswick.svg ca-nb
get https://upload.wikimedia.org/wikipedia/commons/d/dd/Flag_of_Newfoundland_and_Labrador.svg ca-nl
get https://upload.wikimedia.org/wikipedia/commons/9/9a/Nova_Scotia_flag.svg ca-ns
get https://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Ontario.svg ca-on
get https://upload.wikimedia.org/wikipedia/commons/d/d7/Flag_of_Prince_Edward_Island.svg ca-pe
get https://upload.wikimedia.org/wikipedia/commons/5/5f/Flag_of_Quebec.svg ca-qc
get https://upload.wikimedia.org/wikipedia/commons/b/bb/Flag_of_Saskatchewan.svg ca-sk
get https://upload.wikimedia.org/wikipedia/commons/c/c1/Flag_of_the_Northwest_Territories.svg ca-nt
get https://upload.wikimedia.org/wikipedia/commons/9/90/Flag_of_Nunavut.svg ca-nu
get https://upload.wikimedia.org/wikipedia/commons/6/69/Flag_of_Yukon.svg ca-yt
# Comoros
get https://upload.wikimedia.org/wikipedia/commons/3/33/Flag_of_Grande_Comore.svg km-g
get https://upload.wikimedia.org/wikipedia/commons/a/a6/Flag_of_Anjouan_%28official%29.svg km-a
get https://upload.wikimedia.org/wikipedia/commons/c/c2/Flag_of_Moh%C3%A9li_%28official%29.svg km-m
# Czech Republic
get https://upload.wikimedia.org/wikipedia/commons/f/f7/Flag_of_South_Bohemian_Region.svg cz-31
get https://upload.wikimedia.org/wikipedia/commons/d/d7/Flag_of_South_Moravian_Region.svg cz-64
get https://upload.wikimedia.org/wikipedia/commons/0/0b/Flag_of_Karlovy_Vary_Region.svg cz-41
get https://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_Hradec_Kralove_Region.svg cz-52
get https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Liberec_Region.svg cz-51
get https://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Moravian-Silesian_Region.svg cz-80
get https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Olomouc_Region.svg cz-71
get https://upload.wikimedia.org/wikipedia/commons/c/c7/Flag_of_Pardubice_Region.svg cz-53
get https://upload.wikimedia.org/wikipedia/commons/4/4b/Flag_of_Plzen_Region.svg cz-32
get https://upload.wikimedia.org/wikipedia/commons/d/d2/Flag_of_Prague.svg cz-10
get https://upload.wikimedia.org/wikipedia/commons/0/06/Flag_of_Central_Bohemian_Region.svg cz-20
get https://upload.wikimedia.org/wikipedia/commons/1/13/Flag_of_Usti_nad_Labem_Region.svg cz-42
get https://upload.wikimedia.org/wikipedia/commons/1/14/Flag_of_Vysocina_Region.svg cz-63
get https://upload.wikimedia.org/wikipedia/commons/8/84/Flag_of_Zlin_Region.svg cz-72
# Federated States of Micronesia
get https://upload.wikimedia.org/wikipedia/commons/5/55/Flag_of_Chuuk.svg fm-trk
get https://upload.wikimedia.org/wikipedia/commons/2/23/Flag_of_Kosrae.svg fm-ksa
get https://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Pohnpei.svg fm-pni
get https://upload.wikimedia.org/wikipedia/commons/2/2c/Flag_of_Yap.svg fm-yap
# Finland
get https://upload.wikimedia.org/wikipedia/commons/5/52/Flag_of_%C3%85land.svg fi-01
get https://upload.wikimedia.org/wikipedia/commons/9/91/Etel%C3%A4-Karjala.vaakuna.svg fi-02
get https://upload.wikimedia.org/wikipedia/commons/3/30/Flag_of_Southern_Ostrobothnia.svg fi-03
get https://upload.wikimedia.org/wikipedia/commons/b/b1/Flag_of_South_Savonia.svg fi-04
get https://upload.wikimedia.org/wikipedia/commons/5/5d/Flag_of_Kainuu.svg fi-05
get https://upload.wikimedia.org/wikipedia/commons/b/bd/Flag_of_Tavastia_Proper.svg fi-06
get https://upload.wikimedia.org/wikipedia/commons/6/64/Keski-Pohjanmaa.lippu.svg fi-07
get https://upload.wikimedia.org/wikipedia/commons/9/9a/Keski-suomi_lippu.svg fi-08
get https://upload.wikimedia.org/wikipedia/commons/7/70/Kymenlaakson_maakunnan_vaakuna.svg fi-09
get https://upload.wikimedia.org/wikipedia/commons/c/c8/Lapin_maakunnan_vaakuna.svg fi-10
get https://upload.wikimedia.org/wikipedia/commons/c/c3/Pirkanmaa.vaakuna.svg fi-11
get https://upload.wikimedia.org/wikipedia/commons/0/09/Pohjanmaan_maakunnan_vaakuna.svg fi-12
get https://upload.wikimedia.org/wikipedia/commons/e/e0/North_karelia_flag.svg fi-13
get https://upload.wikimedia.org/wikipedia/commons/b/bd/Pohjois-Pohjanmaan_vaakuna.svg fi-14
get https://upload.wikimedia.org/wikipedia/commons/8/85/Flag_of_Northern_Savonia.svg fi-15
get https://upload.wikimedia.org/wikipedia/commons/1/18/P%C3%A4ij%C3%A4t-H%C3%A4me.lippu.svg fi-16
get https://upload.wikimedia.org/wikipedia/commons/7/78/Satakunta-flag.svg fi-17
get https://upload.wikimedia.org/wikipedia/commons/c/c8/Flag_of_Uusimaa.svg fi-18
get https://upload.wikimedia.org/wikipedia/commons/3/37/Etel%C3%A4-Suomen_l%C3%A4%C3%A4nin_vaakuna.svg fi-es
get https://upload.wikimedia.org/wikipedia/commons/4/4d/It%C3%A4-Suomen_l%C3%A4%C3%A4nin_vaakuna.svg fi-is
get https://upload.wikimedia.org/wikipedia/commons/c/c8/Lapin_maakunnan_vaakuna.svg fi-ll
get https://upload.wikimedia.org/wikipedia/commons/5/5e/L%C3%A4nsi-Suomen_l%C3%A4%C3%A4nin_vaakuna.svg fi-ls
# France
get https://upload.wikimedia.org/wikipedia/commons/8/85/Flag_of_the_region_Auvergne-Rh%C3%B4ne-Alpes.svg fr-ara
get https://upload.wikimedia.org/wikipedia/commons/2/28/Flag_of_the_region_Bourgogne-Franche-Comt%C3%A9.svg fr-bfc
get https://upload.wikimedia.org/wikipedia/commons/2/29/Flag_of_Brittany_%28Gwenn_ha_du%29.svg fr-bre
get https://upload.wikimedia.org/wikipedia/commons/d/d5/Flag_of_Centre-Val_de_Loire.svg fr-cvl
get https://upload.wikimedia.org/wikipedia/commons/7/7c/Flag_of_Corsica.svg fr-20r
get https://upload.wikimedia.org/wikipedia/commons/7/79/Logo_R%C3%A9gion_Grand_Est_-_2016.svg fr-ges
get https://upload.wikimedia.org/wikipedia/commons/c/c9/Flag_of_the_Region_of_Hauts-de-France.svg fr-hdf
get https://upload.wikimedia.org/wikipedia/commons/c/c0/BlasonIledeFranceUnofficiel.svg fr-idf
get https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Normandie.svg fr-nor
get https://upload.wikimedia.org/wikipedia/commons/b/b6/Flag_of_Nouvelle-Aquitaine.svg fr-naq
get https://upload.wikimedia.org/wikipedia/commons/1/1d/Flag_of_R%C3%A9gion_Occitanie_%28symbol_only%29.svg fr-occ
get https://upload.wikimedia.org/wikipedia/commons/6/65/Unofficial_flag_of_Pays-de-la-Loire.svg fr-pdl
get https://upload.wikimedia.org/wikipedia/commons/9/94/Flag_of_Provence-Alpes-C%C3%B4te_d%27Azur.svg fr-pac
# Greece
get https://upload.wikimedia.org/wikipedia/commons/4/43/Flag_of_Cretan_State.svg gr-m
# https://en.wikipedia.org/wiki/ISO_3166-2:GR TODO: add these
# Liechtenstein
get https://upload.wikimedia.org/wikipedia/commons/e/e0/Flag_of_Balzers_Liechtenstein-1.svg li-01
get https://upload.wikimedia.org/wikipedia/commons/5/52/Flag_of_Eschen_Liechtenstein-1.svg li-02
get https://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Gamprin_Liechtenstein-1.svg li-03
get https://upload.wikimedia.org/wikipedia/commons/0/04/Flag_of_Mauren_Liechtenstein-1.svg li-04
get https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Planken_Liechtenstein-1.svg li-05
get https://upload.wikimedia.org/wikipedia/commons/3/3d/Flag_of_Ruggell_Liechtenstein-1.svg li-06
get https://upload.wikimedia.org/wikipedia/commons/6/65/Flag_of_Schaan_Liechtenstein-1.svg li-07
get https://upload.wikimedia.org/wikipedia/commons/e/e2/Flag_of_Schellenberg_Liechtenstein-1.svg li-08
get https://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_Triesen_Liechtenstein-1.svg li-09
get https://upload.wikimedia.org/wikipedia/commons/4/4f/Flag_of_Triesenberg_Liechtenstein-1.svg li-10
get https://upload.wikimedia.org/wikipedia/commons/4/43/Flag_of_Vaduz_Liechtenstein-1.svg li-11
# Mauritius
get https://upload.wikimedia.org/wikipedia/commons/3/31/Flag_of_Port_Louis%2C_Mauritius.svg mu-pl
# Mexico
get https://upload.wikimedia.org/wikipedia/commons/9/9c/Flag_of_Baja_California_Sur.svg mx-bcs
get https://upload.wikimedia.org/wikipedia/commons/7/70/Flag_of_Durango.svg mx-dur
get https://upload.wikimedia.org/wikipedia/commons/b/b8/Flag_of_Guerrero.svg mx-gro
get https://upload.wikimedia.org/wikipedia/commons/2/2b/Flag_of_Jalisco.svg mx-jal
get https://upload.wikimedia.org/wikipedia/commons/1/18/Flag_of_Queretaro.svg mx-que
get https://upload.wikimedia.org/wikipedia/commons/a/a0/Flag_of_Quintana_Roo.svg mx-roo
get https://upload.wikimedia.org/wikipedia/commons/2/26/Flag_of_Tlaxcala.svg mx-tla
# Netherlands
get https://upload.wikimedia.org/wikipedia/commons/1/1c/Flag_of_Drenthe.svg nl-dr
get https://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Flevoland.svg nl-fl
get https://upload.wikimedia.org/wikipedia/commons/b/b1/Flag_of_Gelderland.svg nl-ge
get https://upload.wikimedia.org/wikipedia/commons/e/e6/Flag_of_Groningen.svg nl-gr
get https://upload.wikimedia.org/wikipedia/commons/d/d1/Flag_of_Limburg_%28Netherlands%29.svg nl-li
get https://upload.wikimedia.org/wikipedia/commons/a/a2/North_Brabant-Flag.svg nl-nb
get https://upload.wikimedia.org/wikipedia/commons/5/51/Flag_of_North_Holland.svg nl-nh
get https://upload.wikimedia.org/wikipedia/commons/f/f8/Flag_of_Overijssel.svg nl-ov
get https://upload.wikimedia.org/wikipedia/commons/4/4b/Utrecht_%28province%29-Flag.svg nl-ut
get https://upload.wikimedia.org/wikipedia/commons/5/54/Flag_of_Zeeland.svg nl-ze
get https://upload.wikimedia.org/wikipedia/commons/5/5a/Flag_of_Saba.svg bq-sa
get https://upload.wikimedia.org/wikipedia/commons/0/08/Flag_of_Sint_Eustatius.svg bq-se
# New Zealand
get https://upload.wikimedia.org/wikipedia/commons/0/09/Nelson_flag.svg nz-nsn
get https://upload.wikimedia.org/wikipedia/commons/4/4c/Flag_of_Otago.svg nz-ota
get https://upload.wikimedia.org/wikipedia/en/6/64/TaranakiRegionalCouncil-logo.svg nz-tki
# Norway
get https://upload.wikimedia.org/wikipedia/commons/2/25/Agder_v%C3%A5pen.svg no-42
get https://upload.wikimedia.org/wikipedia/commons/2/2c/Innlandet_v%C3%A5pen.svg no-34
get https://upload.wikimedia.org/wikipedia/commons/0/08/Flag_of_M%C3%B8re_og_Romsdal.svg no-15
get https://upload.wikimedia.org/wikipedia/commons/7/75/Flag_of_Nordland.svg no-18
get https://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_Oslo.svg no-03
get https://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_Rogaland.svg no-11
get https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_Vestfold_and_Telemark.svg no-38
get https://upload.wikimedia.org/wikipedia/commons/c/cb/Vestland_v%C3%A5pen.svg no-46
get https://upload.wikimedia.org/wikipedia/commons/0/09/Viken_v%C3%A5pen.svg no-30
# Papua New Guinea
get https://upload.wikimedia.org/wikipedia/commons/e/e4/Flag_of_Bougainville.svg pg-nsb
# Portugal
get https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_Madeira.svg pt-30
get https://upload.wikimedia.org/wikipedia/commons/6/6c/Flag_of_the_Azores.svg pt-20
# Russia
get https://upload.wikimedia.org/wikipedia/commons/1/16/Flag_of_Adygea.svg ru-ad
get https://upload.wikimedia.org/wikipedia/commons/f/ff/Flag_of_Altai_Republic.svg ru-al
get https://upload.wikimedia.org/wikipedia/commons/3/3d/Flag_of_Bashkortostan.svg ru-ba
get https://upload.wikimedia.org/wikipedia/commons/6/68/Flag_of_Buryatia.svg ru-bu
get https://upload.wikimedia.org/wikipedia/commons/1/13/Flag_of_the_Chechen_Republic.svg ru-ce
get https://upload.wikimedia.org/wikipedia/commons/d/d7/Flag_of_Chuvashia.svg ru-cu
get https://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_Dagestan.svg ru-da
get https://upload.wikimedia.org/wikipedia/commons/0/00/Flag_of_Ingushetia.svg ru-in
get https://upload.wikimedia.org/wikipedia/commons/d/d8/Flag_of_Kabardino-Balkaria.svg ru-kb
get https://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Kalmykia.svg ru-kl
get https://upload.wikimedia.org/wikipedia/commons/5/59/Flag_of_Karachay-Cherkessia.svg ru-kc
get https://upload.wikimedia.org/wikipedia/commons/6/69/Flag_of_Karelia.svg ru-kr
get https://upload.wikimedia.org/wikipedia/commons/e/ec/Flag_of_Khakassia.svg ru-kk
get https://upload.wikimedia.org/wikipedia/commons/5/54/Flag_of_Komi.svg ru-ko
get https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Mari_El.svg ru-me
get https://upload.wikimedia.org/wikipedia/commons/2/2f/Flag_of_Mordovia.svg ru-mo
get https://upload.wikimedia.org/wikipedia/commons/e/eb/Flag_of_Sakha.svg ru-sa
get https://upload.wikimedia.org/wikipedia/commons/1/1c/Flag_of_North_Ossetia.svg ru-se
get https://upload.wikimedia.org/wikipedia/commons/2/28/Flag_of_Tatarstan.svg ru-ta
get https://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Tuva.svg ru-ty
get https://upload.wikimedia.org/wikipedia/commons/c/c7/Flag_of_Udmurtia.svg ru-ud
get https://upload.wikimedia.org/wikipedia/commons/4/4b/Flag_of_Altai_Krai.svg ru-alt
get https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Kamchatka_Krai.svg ru-kam
get https://upload.wikimedia.org/wikipedia/commons/4/4f/Flag_of_Khabarovsk_Krai.svg ru-kha
get https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Krasnodar_Krai.svg ru-kda
get https://upload.wikimedia.org/wikipedia/commons/2/2d/Flag_of_Krasnoyarsk_Krai.svg ru-kya
get https://upload.wikimedia.org/wikipedia/commons/b/b5/Flag_of_Perm_Krai.svg ru-per
get https://upload.wikimedia.org/wikipedia/commons/3/38/Flag_of_Primorsky_Krai.svg ru-pri
get https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Stavropol_Krai.svg ru-sta
get https://upload.wikimedia.org/wikipedia/commons/b/b8/Flag_of_Zabaykalsky_Krai.svg ru-zab
get https://upload.wikimedia.org/wikipedia/commons/1/16/Flag_of_Arkhangelsk_Oblast.svg ru-ark
get https://upload.wikimedia.org/wikipedia/commons/8/87/Flag_of_Astrakhan_Oblast.svg ru-ast
get https://upload.wikimedia.org/wikipedia/commons/b/b8/New_Flag_of_Belgorod_Oblast.svg ru-bel
get https://upload.wikimedia.org/wikipedia/commons/2/2b/Flag_of_Bryansk_Oblast.svg ru-bry
get https://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Chelyabinsk_Oblast.svg ru-che
get https://upload.wikimedia.org/wikipedia/commons/1/14/Flag_of_Irkutsk_Oblast.svg ru-irk
get https://upload.wikimedia.org/wikipedia/commons/5/5b/Flag_of_Ivanovo_Oblast.svg ru-iva
get https://upload.wikimedia.org/wikipedia/commons/e/e4/Flag_of_Kaliningrad_Oblast.svg ru-kgd
get https://upload.wikimedia.org/wikipedia/commons/e/ed/Flag_of_Kaluga_Oblast.svg ru-klu
get https://upload.wikimedia.org/wikipedia/commons/e/e3/Flag_of_Kemerovo_Oblast.svg ru-kem
get https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Kirov_Oblast.svg ru-kir
get https://upload.wikimedia.org/wikipedia/commons/2/2c/Flag_of_Kostroma_Oblast.svg ru-kos
get https://upload.wikimedia.org/wikipedia/commons/9/92/Flag_of_Kurgan_Oblast.svg ru-kgn
get https://upload.wikimedia.org/wikipedia/commons/7/70/Flag_of_Kursk_Oblast.svg ru-krs
get https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Leningrad_Oblast.svg ru-len
get https://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Lipetsk_Oblast.svg ru-lip
get https://upload.wikimedia.org/wikipedia/commons/2/29/Flag_of_Magadan_Oblast.svg ru-mag
get https://upload.wikimedia.org/wikipedia/commons/4/48/Flag_of_Moscow_oblast.svg ru-mos
get https://upload.wikimedia.org/wikipedia/commons/3/3b/Flag_of_Murmansk_Oblast.svg ru-mur
get https://upload.wikimedia.org/wikipedia/commons/0/04/Flag_of_Nizhny_Novgorod_Region.svg ru-niz
get https://upload.wikimedia.org/wikipedia/commons/6/68/Flag_of_Novgorod_Oblast.svg ru-ngr
get https://upload.wikimedia.org/wikipedia/commons/3/39/Flag_of_Novosibirsk_oblast.svg ru-nvs
get https://upload.wikimedia.org/wikipedia/commons/6/60/Flag_of_Omsk_Oblast.svg ru-oms
get https://upload.wikimedia.org/wikipedia/commons/d/d6/Flag_of_Orenburg_Oblast.svg ru-ore
get https://upload.wikimedia.org/wikipedia/commons/0/05/Flag_of_Oryol_Oblast.svg ru-orl
get https://upload.wikimedia.org/wikipedia/commons/d/da/Flag_of_Penza_Oblast.svg ru-pnz
get https://upload.wikimedia.org/wikipedia/commons/e/ef/Flag_of_Pskov_Oblast.svg ru-psk
get https://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Rostov_Oblast.svg ru-ros
get https://upload.wikimedia.org/wikipedia/commons/8/8c/Flag_of_Ryazan_Oblast.svg ru-rya
get https://upload.wikimedia.org/wikipedia/commons/5/57/Flag_of_Sakhalin_Oblast.svg ru-sak
get https://upload.wikimedia.org/wikipedia/commons/1/13/Flag_of_Samara_Oblast.svg ru-sam
get https://upload.wikimedia.org/wikipedia/commons/f/f5/Flag_of_Saratov_Oblast.svg ru-sar
get https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_Smolensk_Oblast.svg ru-smo
get https://upload.wikimedia.org/wikipedia/commons/e/ef/Flag_of_Sverdlovsk_Oblast.svg ru-sve
get https://upload.wikimedia.org/wikipedia/commons/3/39/Flag_of_Tambov_Oblast.svg ru-tam
get https://upload.wikimedia.org/wikipedia/commons/5/50/Flag_of_Tomsk_Oblast.svg ru-tom
get https://upload.wikimedia.org/wikipedia/commons/6/69/Flag_of_Tula_Oblast.svg ru-tul
get https://upload.wikimedia.org/wikipedia/commons/6/60/Flag_of_Tver_Oblast.svg ru-tve
get https://upload.wikimedia.org/wikipedia/commons/4/4e/Flag_of_Tyumen_Oblast.svg ru-tyu
get https://upload.wikimedia.org/wikipedia/commons/d/d8/Flag_of_Ulyanovsk_Oblast.svg ru-uly
get https://upload.wikimedia.org/wikipedia/commons/2/2d/Flag_of_Vladimir_Oblast.svg ru-vla
get https://upload.wikimedia.org/wikipedia/commons/3/35/Flag_of_Volgograd_Oblast.svg ru-vgg
get https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_Vologda_oblast.svg ru-vlg
get https://upload.wikimedia.org/wikipedia/commons/6/64/Flag_of_Voronezh_Oblast.svg ru-vor
get https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Yaroslavl_Oblast.svg ru-yar
get https://upload.wikimedia.org/wikipedia/commons/0/03/Flag_of_Moscow%2C_Russia.svg ru-mow
get https://upload.wikimedia.org/wikipedia/commons/c/ca/Flag_of_Saint_Petersburg.svg ru-spe
get https://upload.wikimedia.org/wikipedia/commons/0/0e/Flag_of_the_Jewish_Autonomous_Oblast.svg ru-yev
get https://upload.wikimedia.org/wikipedia/commons/a/a0/Flag_of_Chukotka.svg ru-chu
get https://upload.wikimedia.org/wikipedia/commons/7/70/Flag_of_Yugra.svg ru-khm
get https://upload.wikimedia.org/wikipedia/commons/1/15/Flag_of_Nenets_Autonomous_District.svg ru-nen
get https://upload.wikimedia.org/wikipedia/commons/c/c7/Flag_of_Yamal-Nenets_Autonomous_District.svg ru-yan
# South Korea
get https://upload.wikimedia.org/wikipedia/commons/c/ca/Flag_of_Seoul.svg kr-11
get https://upload.wikimedia.org/wikipedia/commons/6/65/Flag_of_Daegu.svg kr-27
get https://upload.wikimedia.org/wikipedia/commons/5/53/Flag_of_Daejeon.svg kr-30
get https://upload.wikimedia.org/wikipedia/commons/5/59/Flag_of_Gwangju.svg kr-29
get https://upload.wikimedia.org/wikipedia/commons/0/0c/Flag_of_Incheon.svg kr-28
get https://upload.wikimedia.org/wikipedia/commons/e/ef/Flag_of_Ulsan.svg kr-31
get https://upload.wikimedia.org/wikipedia/commons/7/7d/Flag_of_North_Chungcheong_Province.svg kr-43
get https://upload.wikimedia.org/wikipedia/commons/1/1c/Flag_of_South_Chungcheong_Province.svg kr-44
get https://upload.wikimedia.org/wikipedia/commons/f/fe/Flag_of_Gangwon_Province.svg kr-42
get https://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Gyeonggi_Province%2C_South_Korea.svg kr-41
get https://upload.wikimedia.org/wikipedia/commons/e/ef/Flag_of_North_Gyeongsang_Province.svg kr-47
get https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_South_Gyeongsang_Province.svg kr-48
get https://upload.wikimedia.org/wikipedia/commons/2/2a/Flag_of_North_Jeolla_Province.svg kr-45
get https://upload.wikimedia.org/wikipedia/commons/5/58/Flag_of_South_Jeolla_Province.svg kr-46
get https://upload.wikimedia.org/wikipedia/commons/3/35/Flag_of_Jeju.svg kr-49
get https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Sejong_City%2C_South_Korea.svg kr-50
# Spain
get https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_Andaluc%C3%ADa.svg es-an
get https://upload.wikimedia.org/wikipedia/commons/e/e8/Bandera_de_Arag%C3%B3n.svg es-ar
get https://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_Asturias.svg es-as
get https://upload.wikimedia.org/wikipedia/commons/8/8c/Flag_of_the_Canary_Islands_%28simple%29.svg es-cn
get https://upload.wikimedia.org/wikipedia/commons/0/0f/Flag_of_Cantabria_%28Official%29.svg es-cb
get https://upload.wikimedia.org/wikipedia/commons/1/13/Flag_of_Castile_and_Le%C3%B3n.svg es-cl
get https://upload.wikimedia.org/wikipedia/commons/d/d4/Bandera_Castilla-La_Mancha.svg es-cm
get https://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Catalonia.svg es-ct
get https://upload.wikimedia.org/wikipedia/commons/f/fd/Flag_Ceuta.svg es-ce
get https://upload.wikimedia.org/wikipedia/commons/1/13/Flag_of_Extremadura%2C_Spain_%28with_coat_of_arms%29.svg es-ex
get https://upload.wikimedia.org/wikipedia/commons/6/64/Flag_of_Galicia.svg es-ga
get https://upload.wikimedia.org/wikipedia/commons/7/7b/Flag_of_the_Balearic_Islands.svg es-ib
get https://upload.wikimedia.org/wikipedia/commons/d/db/Flag_of_La_Rioja_%28with_coat_of_arms%29.svg es-ri
get https://upload.wikimedia.org/wikipedia/commons/9/9c/Flag_of_the_Community_of_Madrid.svg es-md
get https://upload.wikimedia.org/wikipedia/commons/f/f7/Flag_of_Melilla.svg es-ml
get https://upload.wikimedia.org/wikipedia/commons/a/a5/Flag_of_the_Region_of_Murcia.svg es-mc
get https://upload.wikimedia.org/wikipedia/commons/3/36/Bandera_de_Navarra.svg es-nc
get https://upload.wikimedia.org/wikipedia/commons/2/2d/Flag_of_the_Basque_Country.svg es-pv
get https://upload.wikimedia.org/wikipedia/commons/d/df/Flag_of_the_Land_of_Valencia_%28official%29.svg es-vc
# Sweden
# Switzerland
get https://upload.wikimedia.org/wikipedia/commons/b/b5/Wappen_Aargau_matt.svg ch-ag
get https://upload.wikimedia.org/wikipedia/commons/b/b7/Wappen_Appenzell_Innerrhoden_matt.svg ch-ai
get https://upload.wikimedia.org/wikipedia/commons/2/2c/Wappen_Appenzell_Ausserrhoden_matt.svg ch-ar
get https://upload.wikimedia.org/wikipedia/commons/4/47/Wappen_Bern_matt.svg ch-be
get https://upload.wikimedia.org/wikipedia/commons/8/8e/Coat_of_arms_of_Kanton_Basel-Landschaft.svg cg-bl
get https://upload.wikimedia.org/wikipedia/commons/7/7d/Wappen_Basel-Stadt_matt.svg ch-bs
get https://upload.wikimedia.org/wikipedia/commons/0/01/Wappen_Freiburg_matt.svg ch-fr
get https://upload.wikimedia.org/wikipedia/commons/9/9d/Wappen_Genf_matt.svg ch-ge
get https://upload.wikimedia.org/wikipedia/commons/0/0e/Wappen_Glarus_matt.svg ch-gl
get https://upload.wikimedia.org/wikipedia/commons/8/84/Wappen_Graub%C3%BCnden.svg ch-gr
get https://upload.wikimedia.org/wikipedia/commons/f/f0/Wappen_Jura_matt.svg ch-ju
get https://upload.wikimedia.org/wikipedia/commons/6/66/Wappen_Luzern_matt.svg ch-lu
get https://upload.wikimedia.org/wikipedia/commons/d/d1/Wappen_Neuenburg_matt.svg ch-ne
get https://upload.wikimedia.org/wikipedia/commons/b/bd/Wappen_Nidwalden_matt.svg ch-nw
get https://upload.wikimedia.org/wikipedia/commons/1/1a/Wappen_Obwalden_matt.svg ch-ow
get https://upload.wikimedia.org/wikipedia/commons/c/c5/Coat_of_arms_of_canton_of_St._Gallen.svg ch-sg
get https://upload.wikimedia.org/wikipedia/commons/b/b6/Wappen_Schaffhausen_matt.svg ch-sh
get https://upload.wikimedia.org/wikipedia/commons/b/b7/Wappen_Solothurn_matt.svg ch-so
get https://upload.wikimedia.org/wikipedia/commons/e/ee/Wappen_Schwyz_matt.svg ch-sz
get https://upload.wikimedia.org/wikipedia/commons/7/71/Wappen_Thurgau_matt.svg ch-tg
get https://upload.wikimedia.org/wikipedia/commons/8/87/Wappen_Tessin_matt.svg ch-ti
get https://upload.wikimedia.org/wikipedia/commons/1/10/Wappen_Uri_matt.svg ch-ur
get https://upload.wikimedia.org/wikipedia/commons/1/1d/Wappen_Waadt_matt.svg ch-vd
get https://upload.wikimedia.org/wikipedia/commons/a/a3/Wappen_Wallis_matt.svg ch-vs
get https://upload.wikimedia.org/wikipedia/commons/5/5a/Wappen_Z%C3%BCrich_matt.svg ch-zh
get https://upload.wikimedia.org/wikipedia/commons/3/31/Wappen_Zug_matt.svg ch-zg
# United Arab Emirates
get https://upload.wikimedia.org/wikipedia/commons/7/7c/Flag_of_Ajman.svg ae-aj
get https://upload.wikimedia.org/wikipedia/commons/d/d8/Flag_of_Abu_Dhabi.svg ae-az
get https://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_United_Arab_Emirates.svg ae-fu
get https://upload.wikimedia.org/wikipedia/commons/5/5d/Flag_of_Sharjah_and_Ras_Al_Khaimah.svg ae-sh
get https://upload.wikimedia.org/wikipedia/commons/0/07/Flag_of_Dubai.svg ae-du
get https://upload.wikimedia.org/wikipedia/commons/5/5d/Flag_of_Sharjah_and_Ras_Al_Khaimah.svg ae-rk
get https://upload.wikimedia.org/wikipedia/commons/f/fb/Flag_of_Umm_al-Qaiwain.svg ae-uq
# United Kingdom
get https://flagcdn.com/gb-sct.svg gb-sct
get https://flagcdn.com/gb-wls.svg gb-wls
get https://flagcdn.com/gb-eng.svg gb-eng
get https://flagcdn.com/gb-nir.svg gb-nir
get https://upload.wikimedia.org/wikipedia/commons/0/0a/Flag_of_Shetland.svg gb-zet
get https://upload.wikimedia.org/wikipedia/commons/f/fd/Flag_of_the_British_Antarctic_Territory.svg gb-bq
get https://upload.wikimedia.org/wikipedia/commons/8/89/Flag_of_Tristan_da_Cunha.svg sh-ta
get https://upload.wikimedia.org/wikipedia/commons/6/65/Flag_of_Ascension_Island.svg sh-ac
# United States
for i in "ri" "ga" "nd" "la" "ak" "wa" "nm" "ma" "ut" "ms" "tx" "wv" "nj" "hi" "pa" "sd" "tn" "de" "mo" "fl" "ct" "md" "wy" "ne" "or" "id" "ky" "co" "ia" "me" "mi" "ks" "az" "sc" "nv" "oh" "va" "in" "ok" "il" "mt" "nh" "ar" "wi" "al" "vt" "nc" "ny" "ca"; do
get "https://flagcdn.com/us-$i.svg" us-$i
done
get "https://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_Minnesota.svg" us-mn
get https://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_the_District_of_Columbia.svg us-dc
get https://upload.wikimedia.org/wikipedia/commons/2/2a/Flag_of_the_Midway_Islands_%28local%29.svg um-71
get https://upload.wikimedia.org/wikipedia/commons/4/47/Flag_of_Wake_Island.svg um-79
get https://upload.wikimedia.org/wikipedia/commons/e/e5/Flag_of_Johnston_Atoll_%28local%29.svg um-67
# Historical Alpha-2 Codes
get https://upload.wikimedia.org/wikipedia/commons/a/a9/Flag_of_the_Soviet_Union.svg su
get https://upload.wikimedia.org/wikipedia/commons/6/61/Flag_of_Yugoslavia_%281946-1992%29.svg yu
get https://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_Serbia_and_Montenegro_%281992%E2%80%932006%29.svg cs
get https://upload.wikimedia.org/wikipedia/commons/a/a1/Flag_of_East_Germany.svg dd
get https://upload.wikimedia.org/wikipedia/commons/d/db/Flag_of_South_Yemen.svg yd
get https://upload.wikimedia.org/wikipedia/commons/e/eb/Flag_of_the_Netherlands_Antilles_%281959%E2%80%931986%29.svg an
echo "${cmds[@]}" | parallel
echo
echo "${cmds2[@]}" | parallel
echo
echo "const IDs = \`$(ls svg | sed 's/.svg//')\`.split('\n');
" > autogenerated.js