Initial commit

This commit is contained in:
colttaine 2023-03-05 14:56:10 +11:00
commit 440fa2e4d4
11 changed files with 4682 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
# Ignore files for git commit
/data/*
!/data/.gitkeep
*.pyc
*.json

10
LICENSE.md Normal file
View File

@ -0,0 +1,10 @@
# Colttaine: MasterScraper
### Copyright (C) 2023 Colttaine
This program is free software: you can redistribute it and/or modify it under the terms of the **GNU General Public License +NIGGER** as published by the [Free Software Foundation](http://www.gnu.org/licenses/) and [PlusNigger.org](https://plusnigger.org), either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **GNU General Public License +NIGGER** for more details.
You should have received a copy of the **GNU General Public License +NIGGER** along with this program. If not, see [GNU Licenses ](http://www.gnu.org/licenses/) and [PlusNigger](https://plusnigger.org).
**The above copyright notice, this permission notice and the word "NIGGER" shall be included in all copies or substantial portions of the Software.**

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# MasterScraper
MasterScraper is a webscraper writen in Python which is designed to pull data from a number of sources including [wikipedia](https://en.wikipedia.org/wiki/Main_Page) and [macrotrends](https://www.macrotrends.net/) and then format that data in JSON to be used with the [MasterSet](https://git.rol.so/colttaine/masterset) statistical library.
# License
This project is licensed under a GNU GPL3+NIGGER license. For more information refer to [the included license file](https://git.rol.so/colttaine/masterscraper/src/branch/master/LICENSE.md).

View File

@ -0,0 +1,152 @@
county.code,county.name,county.state,county.year
1913,Bean,ACT,2018
312,Canberra,ACT,2018
238,Fenner,ACT,2018
53,Banks,NSW,2016
40,Barton,NSW,2016
60,Bennelong,NSW,2016
786,Berowra,NSW,2016
61,Blaxland,NSW,2016
101,Bradfield,NSW,2016
32666,Calare,NSW,2016
126,Chifley,NSW,2016
94,Cook,NSW,2016
7296,Cowper,NSW,2016
519,Cunningham,NSW,2016
787,Dobell,NSW,2016
41617,Eden-Monaro,NSW,2016
126590,Farrer,NSW,2016
60,Fowler,NSW,2016
6342,Gilmore,NSW,2016
32,Grayndler,NSW,2016
81,Greenway,NSW,2016
369,Hughes,NSW,2016
17240,Hume,NSW,2016
10640,Hunter,NSW,2016
91,Kingsford Smith,NSW,2016
339,Lindsay,NSW,2016
16099,Lyne,NSW,2016
363,Macarthur,NSW,2016
233,Mackellar,NSW,2016
4374,Macquarie,NSW,2016
168,McMahon,NSW,2016
101,Mitchell,NSW,2016
171,Newcastle,NSW,2016
66394,New England,NSW,2016
53,North Sydney,NSW,2016
19342,Page,NSW,2016
393413,Parkes,NSW,2016
57,Parramatta,NSW,2016
1123,Paterson,NSW,2016
55,Reid,NSW,2016
2148,Richmond,NSW,2016
48988,Riverina,NSW,2016
980,Robertson,NSW,2016
265,Shortland,NSW,2016
44,Sydney,NSW,2016
68,Warringah,NSW,2016
47,Watson,NSW,2016
38,Wentworth,NSW,2016
172,Werriwa,NSW,2016
1331,Whitlam,NSW,2016
1348158,Lingiari,NT,2017
191,Solomon,NT,2017
6472,Blair,Qld,2018
374,Bonner,Qld,2018
536,Bowman,Qld,2018
57,Brisbane,Qld,2018
90903,Capricornia,Qld,2018
14630,Dawson,Qld,2018
724,Dickson,Qld,2018
387,Fadden,Qld,2018
1004,Fairfax,Qld,2018
1198,Fisher,Qld,2018
132824,Flynn,Qld,2018
418,Forde,Qld,2018
57,Griffith,Qld,2018
5586,Groom,Qld,2018
941,Herbert,Qld,2018
3818,Hinkler,Qld,2018
567377,Kennedy,Qld,2018
148559,Leichhardt,Qld,2018
144,Lilley,Qld,2018
1237,Longman,Qld,2018
729897,Maranoa,Qld,2018
229,McPherson,Qld,2018
100,Moncrieff,Qld,2018
109,Moreton,Qld,2018
159,Oxley,Qld,2018
152,Petrie,Qld,2018
131,Rankin,Qld,2018
370,Ryan,Qld,2018
14227,Wide Bay,Qld,2018
7577,Wright,Qld,2018
86,Adelaide,SA,2018
65206,Barker,SA,2018
115,Boothby,SA,2018
908595,Grey,SA,2018
122,Hindmarsh,SA,2018
165,Kingston,SA,2018
162,Makin,SA,2018
9135,Mayo,SA,2018
532,Spence,SA,2018
97,Sturt,SA,2018
7975,Bass,TAS,2017
21369,Braddon,TAS,2017
292,Clark,TAS,2017
10009,Franklin,TAS,2017
35721,Lyons,TAS,2017
114,Aston,VIC,2021
5399,Ballarat,VIC,2021
5285,Bendigo,VIC,2021
115,Bruce,VIC,2021
221,Calwell,VIC,2021
2481,Casey,VIC,2021
77,Chisholm,VIC,2021
59,Cooper,VIC,2021
1506,Corangamite,VIC,2021
773,Corio,VIC,2021
85,Deakin,VIC,2021
153,Dunkley,VIC,2021
871,Flinders,VIC,2021
88,Fraser,VIC,2021
146,Gellibrand,VIC,2021
33131,Gippsland,VIC,2021
51,Goldstein,VIC,2021
217,Gorton,VIC,2021
1842,Hawke,VIC,2021
39,Higgins,VIC,2021
258,Holt,VIC,2021
78,Hotham,VIC,2021
29187,Indi,VIC,2021
156,Isaacs,VIC,2021
126,Jagajaga,VIC,2021
59,Kooyong,VIC,2021
464,Lalor,VIC,2021
1327,La Trobe,VIC,2021
40,Macnamara,VIC,2021
83412,Mallee,VIC,2021
98,Maribyrnong,VIC,2021
2676,McEwen,VIC,2021
40,Melbourne,VIC,2021
137,Menzies,VIC,2021
8255,Monash,VIC,2021
14773,Nicholls,VIC,2021
116,Scullin,VIC,2021
33595,Wannon,VIC,2021
46,Wills,VIC,2021
378,Brand,WA,2021
190,Burt,WA,2021
4245,Canning,WA,2021
95,Cowan,WA,2021
98,Curtin,WA,2021
1383954,Durack,WA,2021
8014,Forrest,WA,2021
194,Fremantle,WA,2021
1323,Hasluck,WA,2021
102,Moore,WA,2021
1126937,O'Connor,WA,2021
783,Pearce,WA,2021
80,Perth,WA,2021
151,Swan,WA,2021
102,Tangney,WA,2021
1 county.code county.name county.state county.year
2 1913 Bean ACT 2018
3 312 Canberra ACT 2018
4 238 Fenner ACT 2018
5 53 Banks NSW 2016
6 40 Barton NSW 2016
7 60 Bennelong NSW 2016
8 786 Berowra NSW 2016
9 61 Blaxland NSW 2016
10 101 Bradfield NSW 2016
11 32666 Calare NSW 2016
12 126 Chifley NSW 2016
13 94 Cook NSW 2016
14 7296 Cowper NSW 2016
15 519 Cunningham NSW 2016
16 787 Dobell NSW 2016
17 41617 Eden-Monaro NSW 2016
18 126590 Farrer NSW 2016
19 60 Fowler NSW 2016
20 6342 Gilmore NSW 2016
21 32 Grayndler NSW 2016
22 81 Greenway NSW 2016
23 369 Hughes NSW 2016
24 17240 Hume NSW 2016
25 10640 Hunter NSW 2016
26 91 Kingsford Smith NSW 2016
27 339 Lindsay NSW 2016
28 16099 Lyne NSW 2016
29 363 Macarthur NSW 2016
30 233 Mackellar NSW 2016
31 4374 Macquarie NSW 2016
32 168 McMahon NSW 2016
33 101 Mitchell NSW 2016
34 171 Newcastle NSW 2016
35 66394 New England NSW 2016
36 53 North Sydney NSW 2016
37 19342 Page NSW 2016
38 393413 Parkes NSW 2016
39 57 Parramatta NSW 2016
40 1123 Paterson NSW 2016
41 55 Reid NSW 2016
42 2148 Richmond NSW 2016
43 48988 Riverina NSW 2016
44 980 Robertson NSW 2016
45 265 Shortland NSW 2016
46 44 Sydney NSW 2016
47 68 Warringah NSW 2016
48 47 Watson NSW 2016
49 38 Wentworth NSW 2016
50 172 Werriwa NSW 2016
51 1331 Whitlam NSW 2016
52 1348158 Lingiari NT 2017
53 191 Solomon NT 2017
54 6472 Blair Qld 2018
55 374 Bonner Qld 2018
56 536 Bowman Qld 2018
57 57 Brisbane Qld 2018
58 90903 Capricornia Qld 2018
59 14630 Dawson Qld 2018
60 724 Dickson Qld 2018
61 387 Fadden Qld 2018
62 1004 Fairfax Qld 2018
63 1198 Fisher Qld 2018
64 132824 Flynn Qld 2018
65 418 Forde Qld 2018
66 57 Griffith Qld 2018
67 5586 Groom Qld 2018
68 941 Herbert Qld 2018
69 3818 Hinkler Qld 2018
70 567377 Kennedy Qld 2018
71 148559 Leichhardt Qld 2018
72 144 Lilley Qld 2018
73 1237 Longman Qld 2018
74 729897 Maranoa Qld 2018
75 229 McPherson Qld 2018
76 100 Moncrieff Qld 2018
77 109 Moreton Qld 2018
78 159 Oxley Qld 2018
79 152 Petrie Qld 2018
80 131 Rankin Qld 2018
81 370 Ryan Qld 2018
82 14227 Wide Bay Qld 2018
83 7577 Wright Qld 2018
84 86 Adelaide SA 2018
85 65206 Barker SA 2018
86 115 Boothby SA 2018
87 908595 Grey SA 2018
88 122 Hindmarsh SA 2018
89 165 Kingston SA 2018
90 162 Makin SA 2018
91 9135 Mayo SA 2018
92 532 Spence SA 2018
93 97 Sturt SA 2018
94 7975 Bass TAS 2017
95 21369 Braddon TAS 2017
96 292 Clark TAS 2017
97 10009 Franklin TAS 2017
98 35721 Lyons TAS 2017
99 114 Aston VIC 2021
100 5399 Ballarat VIC 2021
101 5285 Bendigo VIC 2021
102 115 Bruce VIC 2021
103 221 Calwell VIC 2021
104 2481 Casey VIC 2021
105 77 Chisholm VIC 2021
106 59 Cooper VIC 2021
107 1506 Corangamite VIC 2021
108 773 Corio VIC 2021
109 85 Deakin VIC 2021
110 153 Dunkley VIC 2021
111 871 Flinders VIC 2021
112 88 Fraser VIC 2021
113 146 Gellibrand VIC 2021
114 33131 Gippsland VIC 2021
115 51 Goldstein VIC 2021
116 217 Gorton VIC 2021
117 1842 Hawke VIC 2021
118 39 Higgins VIC 2021
119 258 Holt VIC 2021
120 78 Hotham VIC 2021
121 29187 Indi VIC 2021
122 156 Isaacs VIC 2021
123 126 Jagajaga VIC 2021
124 59 Kooyong VIC 2021
125 464 Lalor VIC 2021
126 1327 La Trobe VIC 2021
127 40 Macnamara VIC 2021
128 83412 Mallee VIC 2021
129 98 Maribyrnong VIC 2021
130 2676 McEwen VIC 2021
131 40 Melbourne VIC 2021
132 137 Menzies VIC 2021
133 8255 Monash VIC 2021
134 14773 Nicholls VIC 2021
135 116 Scullin VIC 2021
136 33595 Wannon VIC 2021
137 46 Wills VIC 2021
138 378 Brand WA 2021
139 190 Burt WA 2021
140 4245 Canning WA 2021
141 95 Cowan WA 2021
142 98 Curtin WA 2021
143 1383954 Durack WA 2021
144 8014 Forrest WA 2021
145 194 Fremantle WA 2021
146 1323 Hasluck WA 2021
147 102 Moore WA 2021
148 1126937 O'Connor WA 2021
149 783 Pearce WA 2021
150 80 Perth WA 2021
151 151 Swan WA 2021
152 102 Tangney WA 2021

File diff suppressed because it is too large Load Diff

688
conf/keycodes/countries.csv Normal file
View File

@ -0,0 +1,688 @@
search.code,country.name,country.alpha.2,country.alpha.3,country.code
Abkhazia (Republic of),Abkhazia (Republic of),,,
Abkhazia,Abkhazia (Republic of),,,
Afghanistan (Islamic Republic of),Afghanistan (Islamic Republic of),AF,AFG,4
Afghanistan,Afghanistan (Islamic Republic of),AF,AFG,4
Akrotiri and Dhekelia (Sovereign Base Areas of),Akrotiri and Dhekelia (Sovereign Base Areas of),,,
Akrotiri and Dhekelia (United Kingdom),Akrotiri and Dhekelia (Sovereign Base Areas of),,,
Åland Islands,Åland Islands,AX,ALA,248
Åland (Finland),Åland Islands,AX,ALA,248
Albania (Republic of),Albania (Republic of),AL,ALB,8
Albania,Albania (Republic of),AL,ALB,8
Algeria (People's Democratic Republic of),Algeria (People's Democratic Republic of),DZ,DZA,12
Algeria,Algeria (People's Democratic Republic of),DZ,DZA,12
American Samoa,American Samoa,AS,ASM,16
American Samoa (US),American Samoa,AS,ASM,16
American Samoa (United States),American Samoa,AS,ASM,16
Andorra (Principality of),Andorra (Principality of),AD,AND,20
Andorra,Andorra (Principality of),AD,AND,20
Angola (Republic of),Angola (Republic of),AO,AGO,24
Angola,Angola (Republic of),AO,AGO,24
Anguilla,Anguilla,AI,AIA,660
Anguilla (UK),Anguilla,AI,AIA,660
Anguilla (United Kingdom),Anguilla,AI,AIA,660
Antarctica (the territory South of 60 deg S),Antarctica (the territory South of 60 deg S),AQ,ATA,10
Antarctica,Antarctica (the territory South of 60 deg S),AQ,ATA,10
Antigua and Barbuda,Antigua and Barbuda,AG,ATG,28
Antigua And Barbuda,Antigua and Barbuda,AG,ATG,28
Antigua & Barbuda,Antigua and Barbuda,AG,ATG,28
Argentina (Argentine Republic),Argentina (Argentine Republic),AR,ARG,32
Argentina,Argentina (Argentine Republic),AR,ARG,32
Armenia (Republic of),Armenia (Republic of),AM,ARM,51
Armenia,Armenia (Republic of),AM,ARM,51
Artsakh (Republic of),Artsakh (Republic of),,,
Artsakh,Artsakh (Republic of),,,
Aruba,Aruba,AW,ABW,533
Aruba (Netherlands),Aruba,AW,ABW,533
Australia (Commonwealth of),Australia (Commonwealth of),AU,AUS,36
Australia,Australia (Commonwealth of),AU,AUS,36
Austria (Republic of),Austria (Republic of),AT,AUT,40
Austria,Austria (Republic of),AT,AUT,40
Azerbaijan (Republic of),Azerbaijan (Republic of),AZ,AZE,31
Azerbaijan,Azerbaijan (Republic of),AZ,AZE,31
Bahamas (Commonwealth of the),Bahamas (Commonwealth of the),BS,BHS,44
The Bahamas,Bahamas (Commonwealth of the),BS,BHS,44
Bahamas The,Bahamas (Commonwealth of the),BS,BHS,44
Bahamas,Bahamas (Commonwealth of the),BS,BHS,44
Bahrain (Kingdom of),Bahrain (Kingdom of),BH,BHR,48
Bahrain,Bahrain (Kingdom of),BH,BHR,48
Bangladesh (People's Republic of),Bangladesh (People's Republic of),BD,BGD,50
Bangladesh,Bangladesh (People's Republic of),BD,BGD,50
Barbados,Barbados,BB,BRB,52
Belarus (Republic of),Belarus (Republic of),BY,BLR,112
Belarus,Belarus (Republic of),BY,BLR,112
Belgium (Kingdom of),Belgium (Kingdom of),BE,BEL,56
Belgium,Belgium (Kingdom of),BE,BEL,56
Belize,Belize,BZ,BLZ,84
Benin (Republic of),Benin (Republic of),BJ,BEN,204
Benin,Benin (Republic of),BJ,BEN,204
Bermuda,Bermuda,BM,BMU,60
Bermuda (UK),Bermuda,BM,BMU,60
Bermuda (United Kingdom),Bermuda,BM,BMU,60
Bhutan (Kingdom of),Bhutan (Kingdom of),BT,BTN,64
Bhutan,Bhutan (Kingdom of),BT,BTN,64
Bolivia (Plurinational State of),Bolivia (Plurinational State of),BO,BOL,68
Bolivia,Bolivia (Plurinational State of),BO,BOL,68
Bonaire (Sint Eustatius and Saba),Bonaire (Sint Eustatius and Saba),BQ,BES,535
Bonaire Sint Eustatius and Saba,Bonaire (Sint Eustatius and Saba),BQ,BES,535
Bonaire (Netherlands),Bonaire (Sint Eustatius and Saba),BQ,BES,535
Bonaire,Bonaire (Sint Eustatius and Saba),BQ,BES,535
Saba,Bonaire (Sint Eustatius and Saba),BQ,BES,535
Bosnia and Herzegovina,Bosnia and Herzegovina,BA,BIH,70
Bosnia And Herzegovina,Bosnia and Herzegovina,BA,BIH,70
Bosnia-Herzegovina,Bosnia and Herzegovina,BA,BIH,70
Bosnia,Bosnia and Herzegovina,BA,BIH,70
Botswana (Republic of),Botswana (Republic of),BW,BWA,72
Botswana,Botswana (Republic of),BW,BWA,72
Bouvet Island (Bouvetoya),Bouvet Island (Bouvetoya),BV,BVT,74
Bouvet Island (Norway),Bouvet Island (Bouvetoya),BV,BVT,74
Bouvet Island,Bouvet Island (Bouvetoya),BV,BVT,74
Brazil (Federative Republic of),Brazil (Federative Republic of),BR,BRA,76
Brazil,Brazil (Federative Republic of),BR,BRA,76
British Antarctic Territory,British Antarctic Territory,BQ,ATB,null
British Indian Ocean Territory,British Indian Ocean Territory,IO,IOT,86
British Indian Ocean Territory (United Kingdom),British Indian Ocean Territory,IO,IOT,86
British Virgin Islands,British Virgin Islands,VG,VGB,92
British Virgin Islands (UK),British Virgin Islands,VG,VGB,92
British Virgin Islands (United Kingdom),British Virgin Islands,VG,VGB,92
Virgin Islands (UK),British Virgin Islands,VG,VGB,92
Brunei (Nation of the Abode of Peace),Brunei (Nation of the Abode of Peace),BN,BRN,96
Brunei Darussalam,Brunei (Nation of the Abode of Peace),BN,BRN,96
Brunei,Brunei (Nation of the Abode of Peace),BN,BRN,96
Bulgaria (Republic of),Bulgaria (Republic of),BG,BGR,100
Bulgaria,Bulgaria (Republic of),BG,BGR,100
Burkina Faso,Burkina Faso,BF,BFA,854
Burma,Burma,BU,BUR,104
Burundi (Republic of),Burundi (Republic of),BI,BDI,108
Burundi,Burundi (Republic of),BI,BDI,108
Byelorussian SSR,Byelorussian SSR,BY,BYS,112
Cambodia (Kingdom of),Cambodia (Kingdom of),KH,KHM,116
Cambodia,Cambodia (Kingdom of),KH,KHM,116
Cameroon (Republic of),Cameroon (Republic of),CM,CMR,120
Cameroon,Cameroon (Republic of),CM,CMR,120
Canada,Canada,CA,CAN,124
Cape Verde (Republic of),Cape Verde (Republic of),CV,CPV,132
Cape Verde,Cape Verde (Republic of),CV,CPV,132
Cabo Verde,Cape Verde (Republic of),CV,CPV,132
Cabo Verde (Cape Verde),Cape Verde (Republic of),CV,CPV,132
Cayman Islands,Cayman Islands,KY,CYM,136
Cayman Islands (UK),Cayman Islands,KY,CYM,136
Cayman Islands (United Kingdom),Cayman Islands,KY,CYM,136
Central African Republic,Central African Republic,CF,CAF,140
Chad (Republic of),Chad (Republic of),TD,TCD,148
Chad,Chad (Republic of),TD,TCD,148
Chile (Republic of),Chile (Republic of),CL,CHL,152
Chile,Chile (Republic of),CL,CHL,152
China (People's Republic of),China (People's Republic of),CN,CHN,156
People's Republic of China,China (People's Republic of),CN,CHN,156
China,China (People's Republic of),CN,CHN,156
Christmas Island,Christmas Island,CX,CXR,162
Christmas Island (Australia),Christmas Island,CX,CXR,162
Cocos (Keeling) Islands,Cocos (Keeling) Islands,CC,CCK,166
Cocos (Keeling) Islands (Australia),Cocos (Keeling) Islands,CC,CCK,166
Colombia (Republic of),Colombia (Republic of),CO,COL,170
Colombia,Colombia (Republic of),CO,COL,170
Comoros (Union of the),Comoros (Union of the),KM,COM,174
Comoros,Comoros (Union of the),KM,COM,174
Congo (Democratic Republic of the),Congo (Democratic Republic of the),CD,COD,180
Congo (Democratic Republic of the Congo),Congo (Democratic Republic of the),CD,COD,180
Democratic Republic of the Congo,Congo (Democratic Republic of the),CD,COD,180
Democratic Republic of Congo,Congo (Democratic Republic of the),CD,COD,180
DR Congo,Congo (Democratic Republic of the),CD,COD,180
Congo DR,Congo (Democratic Republic of the),CD,COD,180
Dr Congo,Congo (Democratic Republic of the),CD,COD,180
Congo Dem Rep.,Congo (Democratic Republic of the),CD,COD,180
Congo Democratic Republic of the,Congo (Democratic Republic of the),CD,COD,180
Congo (Republic of the),Congo (Republic of the),CG,COG,178
Congo (Republic of the Congo),Congo (Republic of the),CG,COG,178
Republic of the Congo,Congo (Republic of the),CG,COG,178
Republic Of The Congo,Congo (Republic of the),CG,COG,178
Congo Republic of the,Congo (Republic of the),CG,COG,178
Congo,Congo (Republic of the),CG,COG,178
Congo Rep,Congo (Republic of the),CG,COG,178
Cook Islands,Cook Islands,CK,COK,184
Cook Islands (New Zealand),Cook Islands,CK,COK,184
Coral Sea Islands (Australia),Coral Sea Islands (Australia),,,
Costa Rica (Republic of),Costa Rica (Republic of),CR,CRI,188
Costa Rica,Costa Rica (Republic of),CR,CRI,188
Côte d'Ivoire (Republic of),Côte d'Ivoire (Republic of),CI,CIV,384
Côte d'Ivoire,Côte d'Ivoire (Republic of),CI,CIV,384
Cote d'Ivoire,Côte d'Ivoire (Republic of),CI,CIV,384
Ivory Coast,Côte d'Ivoire (Republic of),CI,CIV,384
Croatia (Republic of),Croatia (Republic of),HR,HRV,191
Croatia,Croatia (Republic of),HR,HRV,191
Cuba (Republic of),Cuba (Republic of),CU,CUB,192
Cuba,Cuba (Republic of),CU,CUB,192
Curaçao,Curaçao,CW,CUW,531
Curacao,Curaçao,CW,CUW,531
Curacao (Netherlands),Curaçao,CW,CUW,531
Curaçao (Netherlands),Curaçao,CW,CUW,531
Cyprus (Republic of),Cyprus (Republic of),CY,CYP,196
Northern Cyprus,Cyprus (Republic of),CY,CYP,196
Cyprus,Cyprus (Republic of),CY,CYP,196
Czech Republic,Czech Republic,CZ,CZE,203
Czechia,Czech Republic,CZ,CZE,203
Czechoslovakia,Czechoslovakia,CS,CSK,200
Dahomey,Dahomey,DY,DHY,null
Denmark (Kingdom of),Denmark (Kingdom of),DK,DNK,208
Denmark,Denmark (Kingdom of),DK,DNK,208
Disputed Territory,Disputed Territory,XX,null,null
Djibouti (Republic of),Djibouti (Republic of),DJ,DJI,262
Djibouti,Djibouti (Republic of),DJ,DJI,262
Dominica (Commonwealth of),Dominica (Commonwealth of),DM,DMA,212
Dominica,Dominica (Commonwealth of),DM,DMA,212
Dominican Republic,Dominican Republic,DO,DOM,214
Dronning Maud Land,Dronning Maud Land,NQ,ATN,216
Easter Island (Chile),Easter Island (Chile),,,
Easter Island,Easter Island (Chile),,,
Ecuador (Republic of),Ecuador (Republic of),EC,ECU,218
Ecuador,Ecuador (Republic of),EC,ECU,218
Egypt (Arab Republic of),Egypt (Arab Republic of),EG,EGY,818
Egypt Arab Rep,Egypt (Arab Republic of),EG,EGY,818
Egypt,Egypt (Arab Republic of),EG,EGY,818
El Salvador (Republic of),El Salvador (Republic of),SV,SLV,222
El Salvador,El Salvador (Republic of),SV,SLV,222
Equatorial Guinea (Republic of),Equatorial Guinea (Republic of),GQ,GNQ,226
Equatorial Guinea,Equatorial Guinea (Republic of),GQ,GNQ,226
Eritrea (State of),Eritrea (State of),ER,ERI,232
Eritrea,Eritrea (State of),ER,ERI,232
Estonia (Republic of),Estonia (Republic of),EE,EST,233
Estonia,Estonia (Republic of),EE,EST,233
Eswatini (Kingdom of),Eswatini (Kingdom of),SZ,SWZ,748
Eswatini (Swaziland),Eswatini (Kingdom of),SZ,SWZ,748
Eswatini,Eswatini (Kingdom of),SZ,SWZ,748
Kingdom of Eswatini,Eswatini (Kingdom of),SZ,SWZ,748
Swaziland,Eswatini (Kingdom of),SZ,SWZ,748
Ethiopia (Federal Democratic Republic of),Ethiopia (Federal Democratic Republic of),ET,ETH,231
Ethiopia,Ethiopia (Federal Democratic Republic of),ET,ETH,231
Falkland Islands (Malvinas),Falkland Islands (Malvinas),FK,FLK,238
Falkland Islands/Malvinas,Falkland Islands (Malvinas),FK,FLK,238
Falkland Islands,Falkland Islands (Malvinas),FK,FLK,238
Falkland Islands (UK),Falkland Islands (Malvinas),FK,FLK,238
Falkland Islands (United Kingdom),Falkland Islands (Malvinas),FK,FLK,238
Faroe Islands,Faroe Islands,FO,FRO,234
Faeroe Islands,Faroe Islands,FO,FRO,234
Faroe Islands (Denmark),Faroe Islands,FO,FRO,234
Fiji (Republic of),Fiji (Republic of),FJ,FJI,242
Fiji,Fiji (Republic of),FJ,FJI,242
Finland (Republic of),Finland (Republic of),FI,FIN,246
Finland,Finland (Republic of),FI,FIN,246
France (French Republic),France (French Republic),FR,FRA,250
France,France (French Republic),FR,FRA,250
France (Metropolitan),France (Metropolitan),FX,FXX,249
France (metropolitan),France (Metropolitan),FX,FXX,249
France Afars and Issas,France Afars and Issas,AI,AFI,null
French Guiana,French Guiana,GF,GUF,254
French Guiana (France),French Guiana,GF,GUF,254
French Polynesia,French Polynesia,PF,PYF,258
French Polynesia (France),French Polynesia,PF,PYF,258
French Polynesia (territory of France),French Polynesia,PF,PYF,258
French Southern and Antarctic Territories,French Southern and Antarctic Territories,FQ,ATF,null
French Southern and Antarctic Lands,French Southern and Antarctic Territories,FQ,ATF,null
French Southern Territories,French Southern Territories,TF,ATF,260
French Southern Territories (France),French Southern Territories,TF,ATF,260
Gabon (Gabonese Republic),Gabon (Gabonese Republic),GA,GAB,266
Gabon,Gabon (Gabonese Republic),GA,GAB,266
Gambia (Republic of the),Gambia (Republic of the),GM,GMB,270
Gambia,Gambia (Republic of the),GM,GMB,270
Gambia The,Gambia (Republic of the),GM,GMB,270
The Gambia,Gambia (Republic of the),GM,GMB,270
Georgia,Georgia,GE,GEO,268
German Democratic Republic,German Democratic Republic,DD,DDR,278
Germany (Federal Republic of),Germany (Federal Republic of),DE,DEU,276
Germany,Germany (Federal Republic of),DE,DEU,276
Ghana (Republic of),Ghana (Republic of),GH,GHA,288
Ghana,Ghana (Republic of),GH,GHA,288
Gibraltar,Gibraltar,GI,GIB,292
Gibraltar (UK),Gibraltar,GI,GIB,292
Gibraltar (United Kingdom),Gibraltar,GI,GIB,292
Gilbert Islands,Gilbert Islands,GE,GEL,null
Greece (Hellenic Republic),Greece (Hellenic Republic),GR,GRC,300
Greece,Greece (Hellenic Republic),GR,GRC,300
Greenland,Greenland,GL,GRL,304
Greenland (Denmark),Greenland,GL,GRL,304
Grenada,Grenada,GD,GRD,308
Guadeloupe,Guadeloupe,GP,GLP,312
Guadeloupe (France),Guadeloupe,GP,GLP,312
Guam,Guam,GU,GUM,316
Guam (US),Guam,GU,GUM,316
Guam (United States),Guam,GU,GUM,316
Guatemala (Republic of),Guatemala (Republic of),GT,GTM,320
Guatemala,Guatemala (Republic of),GT,GTM,320
Guernsey (Bailiwick of),Guernsey (Bailiwick of),GG,GGY,831
Guernsey (UK),Guernsey (Bailiwick of),GG,GGY,831
Guernsey (British Crown Dependency),Guernsey (Bailiwick of),GG,GGY,831
Guernsey (Channel Islands UK),Guernsey (Bailiwick of),GG,GGY,831
Guernsey,Guernsey (Bailiwick of),GG,GGY,831
Guinea (Republic of),Guinea (Republic of),GN,GIN,324
Guinea,Guinea (Republic of),GN,GIN,324
Guinea-Bissau (Republic of),Guinea-Bissau (Republic of),GW,GNB,624
Guinea-Bissau,Guinea-Bissau (Republic of),GW,GNB,624
Guinea Bissau,Guinea-Bissau (Republic of),GW,GNB,624
Guyana (Co-operative Republic of),Guyana (Co-operative Republic of),GY,GUY,328
Guyana,Guyana (Co-operative Republic of),GY,GUY,328
Haiti (Republic of),Haiti (Republic of),HT,HTI,332
Haiti,Haiti (Republic of),HT,HTI,332
Heard Island and McDonald Islands,Heard Island and McDonald Islands,HM,HMD,334
Heard Island and McDonald Islands (Australia),Heard Island and McDonald Islands,HM,HMD,334
Holy See (Vatican City State),Holy See (Vatican City State),VA,VAT,336
Holy See,Holy See (Vatican City State),VA,VAT,336
Vatican City,Holy See (Vatican City State),VA,VAT,336
Vatican,Holy See (Vatican City State),VA,VAT,336
Honduras (Republic of),Honduras (Republic of),HN,HND,340
Honduras,Honduras (Republic of),HN,HND,340
Hong Kong (Special Administrative Region of China),Hong Kong (Special Administrative Region of China),HK,HKG,344
Hong Kong (China),Hong Kong (Special Administrative Region of China),HK,HKG,344
Hong Kong SAR China,Hong Kong (Special Administrative Region of China),HK,HKG,344
Hong Kong SAR,Hong Kong (Special Administrative Region of China),HK,HKG,344
China Hong Kong SAR,Hong Kong (Special Administrative Region of China),HK,HKG,344
Hong Kong,Hong Kong (Special Administrative Region of China),HK,HKG,344
Hungary (Republic of),Hungary (Republic of),HU,HUN,348
Hungary,Hungary (Republic of),HU,HUN,348
Iceland (Republic of),Iceland (Republic of),IS,ISL,352
Iceland,Iceland (Republic of),IS,ISL,352
India (Republic of),India (Republic of),IN,IND,356
India,India (Republic of),IN,IND,356
Indonesia (Republic of),Indonesia (Republic of),ID,IDN,360
Indonesia,Indonesia (Republic of),ID,IDN,360
Iran (Islamic Republic of),Iran (Islamic Republic of),IR,IRN,364
Iran (Islamic Republic of Iran),Iran (Islamic Republic of),IR,IRN,364
Iran Islamic Rep,Iran (Islamic Republic of),IR,IRN,364
Iran,Iran (Islamic Republic of),IR,IRN,364
Iraq (Republic of),Iraq (Republic of),IQ,IRQ,368
Iraq,Iraq (Republic of),IQ,IRQ,368
Ireland,Ireland,IE,IRL,372
Isle of Man,Isle of Man,IM,IMN,833
Isle of Man (UK),Isle of Man,IM,IMN,833
Isle of Man (British Crown Dependency),Isle of Man,IM,IMN,833
Israel (State of),Israel (State of),IL,ISR,376
Israel,Israel (State of),IL,ISR,376
Italy (Italian Republic),Italy (Italian Republic),IT,ITA,380
Italy,Italy (Italian Republic),IT,ITA,380
Jamaica,Jamaica,JM,JAM,388
Japan,Japan,JP,JPN,392
Jersey (Bailiwick of),Jersey (Bailiwick of),JE,JEY,832
Jersey (British Crown Dependency),Jersey (Bailiwick of),JE,JEY,832
Jersey (UK),Jersey (Bailiwick of),JE,JEY,832
Jersey (Channel Islands UK),Jersey (Bailiwick of),JE,JEY,832
Channel Islands,Jersey (Bailiwick of),JE,JEY,832
Jersey,Jersey (Bailiwick of),JE,JEY,832
Guernsey and Jersey,Jersey (Bailiwick of),JE,JEY,832
Johnston Island,Johnston Island,JT,JTN,396
Jordan (Hashemite Kingdom of),Jordan (Hashemite Kingdom of),JO,JOR,400
Jordan,Jordan (Hashemite Kingdom of),JO,JOR,400
Kazakhstan (Republic of),Kazakhstan (Republic of),KZ,KAZ,398
Kazakhstan,Kazakhstan (Republic of),KZ,KAZ,398
Kenya (Republic of),Kenya (Republic of),KE,KEN,404
Kenya,Kenya (Republic of),KE,KEN,404
Kiribati (Republic of),Kiribati (Republic of),KI,KIR,296
Kiribati,Kiribati (Republic of),KI,KIR,296
Korea (Democratic People's Republic of),Korea (Democratic People's Republic of),KP,PRK,408
Korea Dem People's Rep.,Korea (Democratic People's Republic of),KP,PRK,408
Dem People's Republic of Korea,Korea (Democratic People's Republic of),KP,PRK,408
Korea North,Korea (Democratic People's Republic of),KP,PRK,408
North Korea,Korea (Democratic People's Republic of),KP,PRK,408
Korea (Republic of),Korea (Republic of),KR,KOR,410
Korea Rep,Korea (Republic of),KR,KOR,410
Korea South,Korea (Republic of),KR,KOR,410
South Korea,Korea (Republic of),KR,KOR,410
Kosovo (Republic of),Kosovo (Republic of),XK,XKX,
Kosovo,Kosovo (Republic of),XK,XKX,
Kuwait (State of),Kuwait (State of),KW,KWT,414
Kuwait,Kuwait (State of),KW,KWT,414
Kyrgyz Republic,Kyrgyz Republic,KG,KGZ,417
Kyrgyzstan,Kyrgyz Republic,KG,KGZ,417
Lao (People's Democratic Republic),Lao (People's Democratic Republic),LA,LAO,418
Lao People's Democratic Republic,Lao (People's Democratic Republic),LA,LAO,418
Lao PDR,Lao (People's Democratic Republic),LA,LAO,418
Lao P.D.R.,Lao (People's Democratic Republic),LA,LAO,418
Laos,Lao (People's Democratic Republic),LA,LAO,418
Latvia (Republic of),Latvia (Republic of),LV,LVA,428
Latvia,Latvia (Republic of),LV,LVA,428
Lebanon (Lebanese Republic),Lebanon (Lebanese Republic),LB,LBN,422
Lebanon,Lebanon (Lebanese Republic),LB,LBN,422
Lesotho (Kingdom of),Lesotho (Kingdom of),LS,LSO,426
Lesotho,Lesotho (Kingdom of),LS,LSO,426
Liberia (Republic of),Liberia (Republic of),LR,LBR,430
Liberia,Liberia (Republic of),LR,LBR,430
Libya (State of),Libya (State of),LY,LBY,434
Libya,Libya (State of),LY,LBY,434
Liechtenstein (Principality of),Liechtenstein (Principality of),LI,LIE,438
Liechtenstein,Liechtenstein (Principality of),LI,LIE,438
Lithuania (Republic of),Lithuania (Republic of),LT,LTU,440
Lithuania,Lithuania (Republic of),LT,LTU,440
Luxembourg (Grand Duchy of),Luxembourg (Grand Duchy of),LU,LUX,442
Luxembourg,Luxembourg (Grand Duchy of),LU,LUX,442
Macao (Special Administrative Region of China),Macao (Special Administrative Region of China),MO,MAC,446
Macao,Macao (Special Administrative Region of China),MO,MAC,446
Macao SAR China,Macao (Special Administrative Region of China),MO,MAC,446
China Macao SAR,Macao (Special Administrative Region of China),MO,MAC,446
Macao SAR,Macao (Special Administrative Region of China),MO,MAC,446
Macau,Macao (Special Administrative Region of China),MO,MAC,446
Macau (China),Macao (Special Administrative Region of China),MO,MAC,446
Macao (China),Macao (Special Administrative Region of China),MO,MAC,446
Madagascar (Republic of),Madagascar (Republic of),MG,MDG,450
Madagascar,Madagascar (Republic of),MG,MDG,450
Malawi (Republic of),Malawi (Republic of),MW,MWI,454
Malawi,Malawi (Republic of),MW,MWI,454
Malaysia,Malaysia,MY,MYS,458
Maldives (Republic of),Maldives (Republic of),MV,MDV,462
Maldives,Maldives (Republic of),MV,MDV,462
Mali (Republic of),Mali (Republic of),ML,MLI,466
Mali,Mali (Republic of),ML,MLI,466
Malta (Republic of),Malta (Republic of),MT,MLT,470
Malta,Malta (Republic of),MT,MLT,470
Marshall Islands (Republic of the),Marshall Islands (Republic of the),MH,MHL,584
Marshall Islands,Marshall Islands (Republic of the),MH,MHL,584
Martinique,Martinique,MQ,MTQ,474
Martinique (France),Martinique,MQ,MTQ,474
Mauritania (Islamic Republic of),Mauritania (Islamic Republic of),MR,MRT,478
Mauritania,Mauritania (Islamic Republic of),MR,MRT,478
Mauritius (Republic of),Mauritius (Republic of),MU,MUS,480
Mauritius,Mauritius (Republic of),MU,MUS,480
Mayotte (Department of),Mayotte (Department of),YT,MYT,175
Mayotte,Mayotte (Department of),YT,MYT,175
Mayotte (France),Mayotte (Department of),YT,MYT,175
Mexico (United Mexican States),Mexico (United Mexican States),MX,MEX,484
Mexico,Mexico (United Mexican States),MX,MEX,484
Micronesia (Federated States of),Micronesia (Federated States of),FM,FSM,583
Micronesia (Fed States of),Micronesia (Federated States of),FM,FSM,583
Micronesia Federated States of,Micronesia (Federated States of),FM,FSM,583
Federated States of Micronesia,Micronesia (Federated States of),FM,FSM,583
Micronesia Fed Sts.,Micronesia (Federated States of),FM,FSM,583
Micronesia,Micronesia (Federated States of),FM,FSM,583
Midway Island,Midway Island,MI,MID,488
Midway Islands,Midway Island,MI,MID,488
Moldova (Republic of),Moldova (Republic of),MD,MDA,498
Republic of Moldova,Moldova (Republic of),MD,MDA,498
Moldova,Moldova (Republic of),MD,MDA,498
Monaco (Principality of),Monaco (Principality of),MC,MCO,492
Monaco,Monaco (Principality of),MC,MCO,492
Mongolia,Mongolia,MN,MNG,496
Montenegro,Montenegro,ME,MNE,499
Montserrat,Montserrat,MS,MSR,500
Montserrat (UK),Montserrat,MS,MSR,500
Montserrat (United Kingdom),Montserrat,MS,MSR,500
Morocco (Kingdom of),Morocco (Kingdom of),MA,MAR,504
Morocco,Morocco (Kingdom of),MA,MAR,504
Mozambique (Republic of),Mozambique (Republic of),MZ,MOZ,508
Mozambique,Mozambique (Republic of),MZ,MOZ,508
Myanmar (Union of),Myanmar (Union of),MM,MMR,104
Myanmar,Myanmar (Union of),MM,MMR,104
Myanmar(Burma),Myanmar (Union of),MM,MMR,104
Myanmar (Burma),Myanmar (Union of),MM,MMR,104
Namibia (Republic of),Namibia (Republic of),NA,NAM,516
Namibia,Namibia (Republic of),NA,NAM,516
Nauru (Republic of),Nauru (Republic of),NR,NRU,520
Nauru,Nauru (Republic of),NR,NRU,520
Nepal (Federal Democratic Republic of),Nepal (Federal Democratic Republic of),NP,NPL,524
Nepal,Nepal (Federal Democratic Republic of),NP,NPL,524
Netherland Antilles,Netherland Antilles,AN,ANT,530
Netherlands (Kingdom of the),Netherlands (Kingdom of the),NL,NLD,528
Netherlands,Netherlands (Kingdom of the),NL,NLD,528
Neutral Zone,Neutral Zone,NT,NTZ,536
New Caledonia,New Caledonia,NC,NCL,540
New Caledonia (France),New Caledonia,NC,NCL,540
New Caledonia (territory of France),New Caledonia,NC,NCL,540
New Hebrides,New Hebrides,NH,NHB,null
New Zealand,New Zealand,NZ,NZL,554
Nicaragua (Republic of),Nicaragua (Republic of),NI,NIC,558
Nicaragua,Nicaragua (Republic of),NI,NIC,558
Niger (Republic of),Niger (Republic of),NE,NER,562
Niger,Niger (Republic of),NE,NER,562
Nigeria (Federal Republic of),Nigeria (Federal Republic of),NG,NGA,566
Nigeria,Nigeria (Federal Republic of),NG,NGA,566
Niue,Niue,NU,NIU,570
Niue (New Zealand),Niue,NU,NIU,570
Norfolk Island,Norfolk Island,NF,NFK,574
Norfolk Island (Australia),Norfolk Island,NF,NFK,574
North Macedonia (Republic of),North Macedonia (Republic of),MK,MKD,807
North Macedonia,North Macedonia (Republic of),MK,MKD,807
Macedonia,North Macedonia (Republic of),MK,MKD,807
Northern Mariana Islands (Commonwealth of the),Northern Mariana Islands (Commonwealth of the),MP,MNP,580
Northern Mariana Islands,Northern Mariana Islands (Commonwealth of the),MP,MNP,580
Northern Mariana Islands (United States),Northern Mariana Islands (Commonwealth of the),MP,MNP,580
Northern Mariana Islands (US),Northern Mariana Islands (Commonwealth of the),MP,MNP,580
Northern Mariana Islands (USA),Northern Mariana Islands (Commonwealth of the),MP,MNP,580
Norway (Kingdom of),Norway (Kingdom of),NO,NOR,578
Norway (mainland),Norway (Kingdom of),NO,NOR,578
Norway,Norway (Kingdom of),NO,NOR,578
Oman (Sultanate of),Oman (Sultanate of),OM,OMN,512
Oman,Oman (Sultanate of),OM,OMN,512
Pacific Islands (Trust Territory),Pacific Islands (Trust Territory),PC,PCI,582
Pakistan (Islamic Republic of),Pakistan (Islamic Republic of),PK,PAK,586
Pakistan,Pakistan (Islamic Republic of),PK,PAK,586
Palau (Republic of),Palau (Republic of),PW,PLW,585
Palau,Palau (Republic of),PW,PLW,585
Palestine (State of),Palestine (State of),PS,PSE,275
Palestine State of,Palestine (State of),PS,PSE,275
State of Palestine,Palestine (State of),PS,PSE,275
Palestine,Palestine (State of),PS,PSE,275
West Bank and Gaza,Palestine (State of),PS,PSE,275
Palestine (Gaza Strip),Palestine (State of),PS,PSE,275
Palestine (West Bank),Palestine (State of),PS,PSE,275
Gaza Strip,Palestine (State of),PS,PSE,275
Palestine/West Bank,Palestine (State of),PS,PSE,275
Palestine/Gaza,Palestine (State of),PS,PSE,275
West Bank,Palestine (State of),PS,PSE,275
West Bank/Palestine,Palestine (State of),PS,PSE,275
Panama (Republic of),Panama (Republic of),PA,PAN,591
Panama,Panama (Republic of),PA,PAN,591
Panama Canal Zone,Panama Canal Zone,PZ,PCZ,null
Papua New Guinea (Independent State of),Papua New Guinea (Independent State of),PG,PNG,598
Papua New Guinea,Papua New Guinea (Independent State of),PG,PNG,598
Paraguay (Republic of),Paraguay (Republic of),PY,PRY,600
Paraguay,Paraguay (Republic of),PY,PRY,600
Peru (Republic of),Peru (Republic of),PE,PER,604
Peru,Peru (Republic of),PE,PER,604
Philippines (Republic of the),Philippines (Republic of the),PH,PHL,608
Philippines,Philippines (Republic of the),PH,PHL,608
Pitcairn Islands,Pitcairn Islands,PN,PCN,612
Pitcairn Islands (United Kingdom),Pitcairn Islands,PN,PCN,612
Pitcairn Islands (UK),Pitcairn Islands,PN,PCN,612
Poland (Republic of),Poland (Republic of),PL,POL,616
Poland,Poland (Republic of),PL,POL,616
Portugal (Portuguese Republic),Portugal (Portuguese Republic),PT,PRT,620
Portugal,Portugal (Portuguese Republic),PT,PRT,620
Puerto Rico (Commonwealth of),Puerto Rico (Commonwealth of),PR,PRI,630
Puerto Rico,Puerto Rico (Commonwealth of),PR,PRI,630
Puerto Rico (US),Puerto Rico (Commonwealth of),PR,PRI,630
Puerto Rico (USA),Puerto Rico (Commonwealth of),PR,PRI,630
Puerto Rico (United States),Puerto Rico (Commonwealth of),PR,PRI,630
Qatar (State of),Qatar (State of),QA,QAT,634
Qatar,Qatar (State of),QA,QAT,634
Réunion,Réunion,RE,REU,638
Réunion (France),Réunion,RE,REU,638
Reunion,Réunion,RE,REU,638
Romania,Romania,RO,ROU,642
Russian Federation,Russian Federation,RU,RUS,643
Russia,Russian Federation,RU,RUS,643
Rwanda (Republic of),Rwanda (Republic of),RW,RWA,646
Rwanda,Rwanda (Republic of),RW,RWA,646
Sahrawi Arab Democratic Republic,Sahrawi Arab Democratic Republic,EH,ESH,732
Western Sahara,Sahrawi Arab Democratic Republic,EH,ESH,732
Western Sahara (Sahrawi),Sahrawi Arab Democratic Republic,EH,ESH,732
Saint Barthelemy,Saint Barthelemy,BL,BLM,652
Saint Barthelemy (France),Saint Barthelemy,BL,BLM,652
Saint Barthélemy (France),Saint Barthelemy,BL,BLM,652
Saint Barthélemy,Saint Barthelemy,BL,BLM,652
Saint Helena,Saint Helena,SH,SHN,654
Saint Helena Ascension and Tristan da Cunha,Saint Helena,SH,SHN,654
Saint Helena Ascension and Tristan da Cunha (UK),Saint Helena,SH,SHN,654
Saint Helena Ascension and Tristan da Cunha (United Kingdom),Saint Helena,SH,SHN,654
Saint Helena & dependencies (UK),Saint Helena,SH,SHN,654
Saint Kitts and Nevis (Federation of),Saint Kitts and Nevis (Federation of),KN,KNA,659
Saint Kitts and Nevis,Saint Kitts and Nevis (Federation of),KN,KNA,659
Saint Kitts And Nevis,Saint Kitts and Nevis (Federation of),KN,KNA,659
St Kitts and Nevis,Saint Kitts and Nevis (Federation of),KN,KNA,659
St Kitts & Nevis,Saint Kitts and Nevis (Federation of),KN,KNA,659
Saint Lucia,Saint Lucia,LC,LCA,662
St Lucia,Saint Lucia,LC,LCA,662
Saint Martin,Saint Martin,MF,MAF,663
Saint Martin (France),Saint Martin,MF,MAF,663
St Martin (French part),Saint Martin,MF,MAF,663
Saint Martin (French part),Saint Martin,MF,MAF,663
Saint Martin (France) (French part),Saint Martin,MF,MAF,663
Saint Pierre and Miquelon,Saint Pierre and Miquelon,PM,SPM,666
Saint Pierre and Miquelon (France),Saint Pierre and Miquelon,PM,SPM,666
Saint Vincent and the Grenadines,Saint Vincent and the Grenadines,VC,VCT,670
Saint Vincent And The Grenadines,Saint Vincent and the Grenadines,VC,VCT,670
St Vincent and the Grenadines,Saint Vincent and the Grenadines,VC,VCT,670
Samoa (Independent State of),Samoa (Independent State of),WS,WSM,882
Samoa,Samoa (Independent State of),WS,WSM,882
Western Samoa,Samoa (Independent State of),WS,WSM,882
San Marino (Republic of),San Marino (Republic of),SM,SMR,674
San Marino,San Marino (Republic of),SM,SMR,674
São Tomé and Príncipe (Democratic Republic of),São Tomé and Príncipe (Democratic Republic of),ST,STP,678
São Tomé and Príncipe,São Tomé and Príncipe (Democratic Republic of),ST,STP,678
Sao Tome And Principe,São Tomé and Príncipe (Democratic Republic of),ST,STP,678
Sao Tome and Principe,São Tomé and Príncipe (Democratic Republic of),ST,STP,678
Saudi Arabia (Kingdom of),Saudi Arabia (Kingdom of),SA,SAU,682
Saudi Arabia,Saudi Arabia (Kingdom of),SA,SAU,682
Senegal (Republic of),Senegal (Republic of),SN,SEN,686
Senegal,Senegal (Republic of),SN,SEN,686
Serbia (Republic of),Serbia (Republic of),RS,SRB,688
Serbia,Serbia (Republic of),RS,SRB,688
Serbia and Montenegro,Serbia and Montenegro,CS,SCG,891
Seychelles (Republic of),Seychelles (Republic of),SC,SYC,690
Seychelles,Seychelles (Republic of),SC,SYC,690
Sierra Leone (Republic of),Sierra Leone (Republic of),SL,SLE,694
Sierra Leone,Sierra Leone (Republic of),SL,SLE,694
Sikkim,Sikkim,SK,SKM,null
Singapore (Republic of),Singapore (Republic of),SG,SGP,702
Singapore,Singapore (Republic of),SG,SGP,702
Sint Maarten (Netherlands),Sint Maarten (Netherlands),SX,SXM,534
Sint Maarten(Netherlands),Sint Maarten (Netherlands),SX,SXM,534
Sint Maarten (Dutch part),Sint Maarten (Netherlands),SX,SXM,534
Sint Maarten,Sint Maarten (Netherlands),SX,SXM,534
Netherlands Antilles,Sint Maarten (Netherlands),SX,SXM,534
Slovakia (Slovak Republic),Slovakia (Slovak Republic),SK,SVK,703
Slovak Republic,Slovakia (Slovak Republic),SK,SVK,703
Slovakia,Slovakia (Slovak Republic),SK,SVK,703
Slovenia (Republic of),Slovenia (Republic of),SI,SVN,705
Slovenia,Slovenia (Republic of),SI,SVN,705
Solomon Islands,Solomon Islands,SB,SLB,90
Somalia (Federal Republic of),Somalia (Federal Republic of),SO,SOM,706
Somalia,Somalia (Federal Republic of),SO,SOM,706
Somaliland (Republic of),Somaliland (Republic of),,,
Somaliland,Somaliland (Republic of),,,
South Africa (Republic of),South Africa (Republic of),ZA,ZAF,710
South Africa,South Africa (Republic of),ZA,ZAF,710
South Georgia and the South Sandwich Islands,South Georgia and the South Sandwich Islands,GS,SGS,239
South Georgia and the South Sandwich Islands (United Kingdom),South Georgia and the South Sandwich Islands,GS,SGS,239
South Ossetia (Republic of) (the State of Alania),South Ossetia (Republic of) (the State of Alania),,,
South Ossetia,South Ossetia (Republic of) (the State of Alania),,,
South Sudan (Republic of),South Sudan (Republic of),SS,SSD,728
South Sudan,South Sudan (Republic of),SS,SSD,728
Sudan South,South Sudan (Republic of),SS,SSD,728
Southern Rhodesia,Southern Rhodesia,RH,RHO,null
Soviet Union,Soviet Union,SU,SUN,810
Spain (Kingdom of),Spain (Kingdom of),ES,ESP,724
Spain,Spain (Kingdom of),ES,ESP,724
Spratly Islands,Spratly Islands,XS,null,null
Spratly Islands (disputed),Spratly Islands,XS,null,null
Sri Lanka (Democratic Socialist Republic of),Sri Lanka (Democratic Socialist Republic of),LK,LKA,144
Sri Lanka,Sri Lanka (Democratic Socialist Republic of),LK,LKA,144
Sudan (Republic of the),Sudan (Republic of the),SD,SDN,729
Sudan,Sudan (Republic of the),SD,SDN,729
Suriname (Republic of),Suriname (Republic of),SR,SUR,740
Suriname,Suriname (Republic of),SR,SUR,740
Svalbard and Jan Mayen Islands,Svalbard and Jan Mayen Islands,SJ,SJM,744
Svalbard and Jan Mayen,Svalbard and Jan Mayen Islands,SJ,SJM,744
Svalbard,Svalbard and Jan Mayen Islands,SJ,SJM,744
Svalbard (Norway),Svalbard and Jan Mayen Islands,SJ,SJM,744
Jan Mayen,Svalbard and Jan Mayen Islands,SJ,SJM,744
Jan Mayen (Norway),Svalbard and Jan Mayen Islands,SJ,SJM,744
Sweden (Kingdom of),Sweden (Kingdom of),SE,SWE,752
Sweden,Sweden (Kingdom of),SE,SWE,752
Switzerland (Swiss Confederation),Switzerland (Swiss Confederation),CH,CHE,756
Switzerland,Switzerland (Swiss Confederation),CH,CHE,756
Syrian Arab Republic,Syrian Arab Republic,SY,SYR,760
Syria,Syrian Arab Republic,SY,SYR,760
Taiwan,Taiwan,TW,TWN,158
Taiwan (Republic of China),Taiwan,TW,TWN,158
Tajikistan (Republic of),Tajikistan (Republic of),TJ,TJK,762
Tajikistan,Tajikistan (Republic of),TJ,TJK,762
Tanzania (United Republic of),Tanzania (United Republic of),TZ,TZA,834
United Republic of Tanzania,Tanzania (United Republic of),TZ,TZA,834
Tanzania,Tanzania (United Republic of),TZ,TZA,834
Thailand (Kingdom of),Thailand (Kingdom of),TH,THA,764
Thailand,Thailand (Kingdom of),TH,THA,764
Timor-Leste (Democratic Republic of),Timor-Leste (Democratic Republic of),TL,TLS,626
Timor-Leste,Timor-Leste (Democratic Republic of),TL,TLS,626
Timor Leste,Timor-Leste (Democratic Republic of),TL,TLS,626
East Timor,Timor-Leste (Democratic Republic of),TL,TLS,626
Timor,Timor-Leste (Democratic Republic of),TL,TLS,626
Togo (Togolese Republic),Togo (Togolese Republic),TG,TGO,768
Togo,Togo (Togolese Republic),TG,TGO,768
Tokelau,Tokelau,TK,TKL,772
Tokelau (New Zealand),Tokelau,TK,TKL,772
Tonga (Kingdom of),Tonga (Kingdom of),TO,TON,776
Tonga,Tonga (Kingdom of),TO,TON,776
Transnistria (Pridnestrovian Moldavian Republic),Translistria (Pridnestrovian Moldavian Republic),,,
Transnistria,Translistria (Pridnestrovian Moldavian Republic),,,
Trinidad and Tobago (Republic of),Trinidad and Tobago (Republic of),TT,TTO,780
Trinidad and Tobago,Trinidad and Tobago (Republic of),TT,TTO,780
Trinidad & Tobago,Trinidad and Tobago (Republic of),TT,TTO,780
Trinidad And Tobago,Trinidad and Tobago (Republic of),TT,TTO,780
Tunisia (Republic of),Tunisia (Republic of),TN,TUN,788
Tunisia,Tunisia (Republic of),TN,TUN,788
Turkey (Republic of),Turkey (Republic of),TR,TUR,792
Turkey,Turkey (Republic of),TR,TUR,792
Turkmenistan,Turkmenistan,TM,TKM,795
Turks and Caicos Islands,Turks and Caicos Islands,TC,TCA,796
Turks And Caicos Islands,Turks and Caicos Islands,TC,TCA,796
Turks and Caicos Islands (UK),Turks and Caicos Islands,TC,TCA,796
Turks and Caicos Islands (United Kingdom),Turks and Caicos Islands,TC,TCA,796
Tuvalu,Tuvalu,TV,TUV,798
Uganda (Republic of),Uganda (Republic of),UG,UGA,800
Uganda,Uganda (Republic of),UG,UGA,800
Ukraine,Ukraine,UA,UKR,804
United Arab Emirates,United Arab Emirates,AE,ARE,784
United Kingdom (of Great Britain & Northern Ireland),United Kingdom (of Great Britain & Northern Ireland),GB,GBR,826
United Kingdom,United Kingdom (of Great Britain & Northern Ireland),GB,GBR,826
Great Britain,United Kingdom (of Great Britain & Northern Ireland),GB,GBR,826
United Nations Neutral Zone,United Nations Neutral Zone,XD,null,null
United States (of America),United States (of America),US,USA,840
United States of America,United States (of America),US,USA,840
United States,United States (of America),US,USA,840
United States Minor Outlying Islands,United States Minor Outlying Islands,UM,UMI,581
United States Miscellaneous Pacific Islands,United States Miscellaneous Pacific Islands,PU,PUS,849
United States Virgin Islands,United States Virgin Islands,VI,VIR,850
US Virgin Islands,United States Virgin Islands,VI,VIR,850
US. Virgin Islands,United States Virgin Islands,VI,VIR,850
U.S. Virgin Islands,United States Virgin Islands,VI,VIR,850
U.S. Virgin Islands (US),United States Virgin Islands,VI,VIR,850
U.S. Virgin Islands (United States),United States Virgin Islands,VI,VIR,850
US. Virgin Islands (United States),United States Virgin Islands,VI,VIR,850
US Virgin Islands (US),United States Virgin Islands,VI,VIR,850
Virgin Islands (US.),United States Virgin Islands,VI,VIR,850
Virgin Islands (US),United States Virgin Islands,VI,VIR,850
Virgin Islands,United States Virgin Islands,VI,VIR,850
Upper Volta,Upper Volta,HV,HVO,854
Uruguay (Oriental Republic of),Uruguay (Oriental Republic of),UY,URY,858
Uruguay,Uruguay (Oriental Republic of),UY,URY,858
Uzbekistan (Republic of),Uzbekistan (Republic of),UZ,UZB,860
Uzbekistan,Uzbekistan (Republic of),UZ,UZB,860
Vanuatu (Republic of),Vanuatu (Republic of),VU,VUT,548
Vanuatu,Vanuatu (Republic of),VU,VUT,548
Venezuela (Bolivarian Republic of),Venezuela (Bolivarian Republic of),VE,VEN,862
Venezuela RB,Venezuela (Bolivarian Republic of),VE,VEN,862
Venezuela,Venezuela (Bolivarian Republic of),VE,VEN,862
Vietnam (Socialist Republic of),Vietnam (Socialist Republic of),VN,VNM,704
Vietnam,Vietnam (Socialist Republic of),VN,VNM,704
Viet Nam,Vietnam (Socialist Republic of),VN,VNM,704
Wake Island,Wake Island,WK,WAK,872
Wallis and Futuna,Wallis and Futuna,WF,WLF,876
Wallis and Futuna (France),Wallis and Futuna,WF,WLF,876
Wallis and Futuna Islands,Wallis and Futuna,WF,WLF,876
Yemen (Republic of),Yemen (Republic of),YE,YEM,887
Yemen Rep,Yemen (Republic of),YE,YEM,887
Yemen,Yemen (Republic of),YE,YEM,887
Yugoslavia,Yugoslavia,YU,YUG,891
Zaire,Zaire,ZR,ZAR,
Zambia (Republic of),Zambia (Republic of),ZM,ZMB,894
Zambia,Zambia (Republic of),ZM,ZMB,894
Zanzibar,Zanzibar,,,
Zimbabwe (Republic of),Zimbabwe (Republic of),ZW,ZWE,716
Zimbabwe,Zimbabwe (Republic of),ZW,ZWE,716
1 search.code country.name country.alpha.2 country.alpha.3 country.code
2 Abkhazia (Republic of) Abkhazia (Republic of)
3 Abkhazia Abkhazia (Republic of)
4 Afghanistan (Islamic Republic of) Afghanistan (Islamic Republic of) AF AFG 4
5 Afghanistan Afghanistan (Islamic Republic of) AF AFG 4
6 Akrotiri and Dhekelia (Sovereign Base Areas of) Akrotiri and Dhekelia (Sovereign Base Areas of)
7 Akrotiri and Dhekelia (United Kingdom) Akrotiri and Dhekelia (Sovereign Base Areas of)
8 Åland Islands Åland Islands AX ALA 248
9 Åland (Finland) Åland Islands AX ALA 248
10 Albania (Republic of) Albania (Republic of) AL ALB 8
11 Albania Albania (Republic of) AL ALB 8
12 Algeria (People's Democratic Republic of) Algeria (People's Democratic Republic of) DZ DZA 12
13 Algeria Algeria (People's Democratic Republic of) DZ DZA 12
14 American Samoa American Samoa AS ASM 16
15 American Samoa (US) American Samoa AS ASM 16
16 American Samoa (United States) American Samoa AS ASM 16
17 Andorra (Principality of) Andorra (Principality of) AD AND 20
18 Andorra Andorra (Principality of) AD AND 20
19 Angola (Republic of) Angola (Republic of) AO AGO 24
20 Angola Angola (Republic of) AO AGO 24
21 Anguilla Anguilla AI AIA 660
22 Anguilla (UK) Anguilla AI AIA 660
23 Anguilla (United Kingdom) Anguilla AI AIA 660
24 Antarctica (the territory South of 60 deg S) Antarctica (the territory South of 60 deg S) AQ ATA 10
25 Antarctica Antarctica (the territory South of 60 deg S) AQ ATA 10
26 Antigua and Barbuda Antigua and Barbuda AG ATG 28
27 Antigua And Barbuda Antigua and Barbuda AG ATG 28
28 Antigua & Barbuda Antigua and Barbuda AG ATG 28
29 Argentina (Argentine Republic) Argentina (Argentine Republic) AR ARG 32
30 Argentina Argentina (Argentine Republic) AR ARG 32
31 Armenia (Republic of) Armenia (Republic of) AM ARM 51
32 Armenia Armenia (Republic of) AM ARM 51
33 Artsakh (Republic of) Artsakh (Republic of)
34 Artsakh Artsakh (Republic of)
35 Aruba Aruba AW ABW 533
36 Aruba (Netherlands) Aruba AW ABW 533
37 Australia (Commonwealth of) Australia (Commonwealth of) AU AUS 36
38 Australia Australia (Commonwealth of) AU AUS 36
39 Austria (Republic of) Austria (Republic of) AT AUT 40
40 Austria Austria (Republic of) AT AUT 40
41 Azerbaijan (Republic of) Azerbaijan (Republic of) AZ AZE 31
42 Azerbaijan Azerbaijan (Republic of) AZ AZE 31
43 Bahamas (Commonwealth of the) Bahamas (Commonwealth of the) BS BHS 44
44 The Bahamas Bahamas (Commonwealth of the) BS BHS 44
45 Bahamas The Bahamas (Commonwealth of the) BS BHS 44
46 Bahamas Bahamas (Commonwealth of the) BS BHS 44
47 Bahrain (Kingdom of) Bahrain (Kingdom of) BH BHR 48
48 Bahrain Bahrain (Kingdom of) BH BHR 48
49 Bangladesh (People's Republic of) Bangladesh (People's Republic of) BD BGD 50
50 Bangladesh Bangladesh (People's Republic of) BD BGD 50
51 Barbados Barbados BB BRB 52
52 Belarus (Republic of) Belarus (Republic of) BY BLR 112
53 Belarus Belarus (Republic of) BY BLR 112
54 Belgium (Kingdom of) Belgium (Kingdom of) BE BEL 56
55 Belgium Belgium (Kingdom of) BE BEL 56
56 Belize Belize BZ BLZ 84
57 Benin (Republic of) Benin (Republic of) BJ BEN 204
58 Benin Benin (Republic of) BJ BEN 204
59 Bermuda Bermuda BM BMU 60
60 Bermuda (UK) Bermuda BM BMU 60
61 Bermuda (United Kingdom) Bermuda BM BMU 60
62 Bhutan (Kingdom of) Bhutan (Kingdom of) BT BTN 64
63 Bhutan Bhutan (Kingdom of) BT BTN 64
64 Bolivia (Plurinational State of) Bolivia (Plurinational State of) BO BOL 68
65 Bolivia Bolivia (Plurinational State of) BO BOL 68
66 Bonaire (Sint Eustatius and Saba) Bonaire (Sint Eustatius and Saba) BQ BES 535
67 Bonaire Sint Eustatius and Saba Bonaire (Sint Eustatius and Saba) BQ BES 535
68 Bonaire (Netherlands) Bonaire (Sint Eustatius and Saba) BQ BES 535
69 Bonaire Bonaire (Sint Eustatius and Saba) BQ BES 535
70 Saba Bonaire (Sint Eustatius and Saba) BQ BES 535
71 Bosnia and Herzegovina Bosnia and Herzegovina BA BIH 70
72 Bosnia And Herzegovina Bosnia and Herzegovina BA BIH 70
73 Bosnia-Herzegovina Bosnia and Herzegovina BA BIH 70
74 Bosnia Bosnia and Herzegovina BA BIH 70
75 Botswana (Republic of) Botswana (Republic of) BW BWA 72
76 Botswana Botswana (Republic of) BW BWA 72
77 Bouvet Island (Bouvetoya) Bouvet Island (Bouvetoya) BV BVT 74
78 Bouvet Island (Norway) Bouvet Island (Bouvetoya) BV BVT 74
79 Bouvet Island Bouvet Island (Bouvetoya) BV BVT 74
80 Brazil (Federative Republic of) Brazil (Federative Republic of) BR BRA 76
81 Brazil Brazil (Federative Republic of) BR BRA 76
82 British Antarctic Territory British Antarctic Territory BQ ATB null
83 British Indian Ocean Territory British Indian Ocean Territory IO IOT 86
84 British Indian Ocean Territory (United Kingdom) British Indian Ocean Territory IO IOT 86
85 British Virgin Islands British Virgin Islands VG VGB 92
86 British Virgin Islands (UK) British Virgin Islands VG VGB 92
87 British Virgin Islands (United Kingdom) British Virgin Islands VG VGB 92
88 Virgin Islands (UK) British Virgin Islands VG VGB 92
89 Brunei (Nation of the Abode of Peace) Brunei (Nation of the Abode of Peace) BN BRN 96
90 Brunei Darussalam Brunei (Nation of the Abode of Peace) BN BRN 96
91 Brunei Brunei (Nation of the Abode of Peace) BN BRN 96
92 Bulgaria (Republic of) Bulgaria (Republic of) BG BGR 100
93 Bulgaria Bulgaria (Republic of) BG BGR 100
94 Burkina Faso Burkina Faso BF BFA 854
95 Burma Burma BU BUR 104
96 Burundi (Republic of) Burundi (Republic of) BI BDI 108
97 Burundi Burundi (Republic of) BI BDI 108
98 Byelorussian SSR Byelorussian SSR BY BYS 112
99 Cambodia (Kingdom of) Cambodia (Kingdom of) KH KHM 116
100 Cambodia Cambodia (Kingdom of) KH KHM 116
101 Cameroon (Republic of) Cameroon (Republic of) CM CMR 120
102 Cameroon Cameroon (Republic of) CM CMR 120
103 Canada Canada CA CAN 124
104 Cape Verde (Republic of) Cape Verde (Republic of) CV CPV 132
105 Cape Verde Cape Verde (Republic of) CV CPV 132
106 Cabo Verde Cape Verde (Republic of) CV CPV 132
107 Cabo Verde (Cape Verde) Cape Verde (Republic of) CV CPV 132
108 Cayman Islands Cayman Islands KY CYM 136
109 Cayman Islands (UK) Cayman Islands KY CYM 136
110 Cayman Islands (United Kingdom) Cayman Islands KY CYM 136
111 Central African Republic Central African Republic CF CAF 140
112 Chad (Republic of) Chad (Republic of) TD TCD 148
113 Chad Chad (Republic of) TD TCD 148
114 Chile (Republic of) Chile (Republic of) CL CHL 152
115 Chile Chile (Republic of) CL CHL 152
116 China (People's Republic of) China (People's Republic of) CN CHN 156
117 People's Republic of China China (People's Republic of) CN CHN 156
118 China China (People's Republic of) CN CHN 156
119 Christmas Island Christmas Island CX CXR 162
120 Christmas Island (Australia) Christmas Island CX CXR 162
121 Cocos (Keeling) Islands Cocos (Keeling) Islands CC CCK 166
122 Cocos (Keeling) Islands (Australia) Cocos (Keeling) Islands CC CCK 166
123 Colombia (Republic of) Colombia (Republic of) CO COL 170
124 Colombia Colombia (Republic of) CO COL 170
125 Comoros (Union of the) Comoros (Union of the) KM COM 174
126 Comoros Comoros (Union of the) KM COM 174
127 Congo (Democratic Republic of the) Congo (Democratic Republic of the) CD COD 180
128 Congo (Democratic Republic of the Congo) Congo (Democratic Republic of the) CD COD 180
129 Democratic Republic of the Congo Congo (Democratic Republic of the) CD COD 180
130 Democratic Republic of Congo Congo (Democratic Republic of the) CD COD 180
131 DR Congo Congo (Democratic Republic of the) CD COD 180
132 Congo DR Congo (Democratic Republic of the) CD COD 180
133 Dr Congo Congo (Democratic Republic of the) CD COD 180
134 Congo Dem Rep. Congo (Democratic Republic of the) CD COD 180
135 Congo Democratic Republic of the Congo (Democratic Republic of the) CD COD 180
136 Congo (Republic of the) Congo (Republic of the) CG COG 178
137 Congo (Republic of the Congo) Congo (Republic of the) CG COG 178
138 Republic of the Congo Congo (Republic of the) CG COG 178
139 Republic Of The Congo Congo (Republic of the) CG COG 178
140 Congo Republic of the Congo (Republic of the) CG COG 178
141 Congo Congo (Republic of the) CG COG 178
142 Congo Rep Congo (Republic of the) CG COG 178
143 Cook Islands Cook Islands CK COK 184
144 Cook Islands (New Zealand) Cook Islands CK COK 184
145 Coral Sea Islands (Australia) Coral Sea Islands (Australia)
146 Costa Rica (Republic of) Costa Rica (Republic of) CR CRI 188
147 Costa Rica Costa Rica (Republic of) CR CRI 188
148 Côte d'Ivoire (Republic of) Côte d'Ivoire (Republic of) CI CIV 384
149 Côte d'Ivoire Côte d'Ivoire (Republic of) CI CIV 384
150 Cote d'Ivoire Côte d'Ivoire (Republic of) CI CIV 384
151 Ivory Coast Côte d'Ivoire (Republic of) CI CIV 384
152 Croatia (Republic of) Croatia (Republic of) HR HRV 191
153 Croatia Croatia (Republic of) HR HRV 191
154 Cuba (Republic of) Cuba (Republic of) CU CUB 192
155 Cuba Cuba (Republic of) CU CUB 192
156 Curaçao Curaçao CW CUW 531
157 Curacao Curaçao CW CUW 531
158 Curacao (Netherlands) Curaçao CW CUW 531
159 Curaçao (Netherlands) Curaçao CW CUW 531
160 Cyprus (Republic of) Cyprus (Republic of) CY CYP 196
161 Northern Cyprus Cyprus (Republic of) CY CYP 196
162 Cyprus Cyprus (Republic of) CY CYP 196
163 Czech Republic Czech Republic CZ CZE 203
164 Czechia Czech Republic CZ CZE 203
165 Czechoslovakia Czechoslovakia CS CSK 200
166 Dahomey Dahomey DY DHY null
167 Denmark (Kingdom of) Denmark (Kingdom of) DK DNK 208
168 Denmark Denmark (Kingdom of) DK DNK 208
169 Disputed Territory Disputed Territory XX null null
170 Djibouti (Republic of) Djibouti (Republic of) DJ DJI 262
171 Djibouti Djibouti (Republic of) DJ DJI 262
172 Dominica (Commonwealth of) Dominica (Commonwealth of) DM DMA 212
173 Dominica Dominica (Commonwealth of) DM DMA 212
174 Dominican Republic Dominican Republic DO DOM 214
175 Dronning Maud Land Dronning Maud Land NQ ATN 216
176 Easter Island (Chile) Easter Island (Chile)
177 Easter Island Easter Island (Chile)
178 Ecuador (Republic of) Ecuador (Republic of) EC ECU 218
179 Ecuador Ecuador (Republic of) EC ECU 218
180 Egypt (Arab Republic of) Egypt (Arab Republic of) EG EGY 818
181 Egypt Arab Rep Egypt (Arab Republic of) EG EGY 818
182 Egypt Egypt (Arab Republic of) EG EGY 818
183 El Salvador (Republic of) El Salvador (Republic of) SV SLV 222
184 El Salvador El Salvador (Republic of) SV SLV 222
185 Equatorial Guinea (Republic of) Equatorial Guinea (Republic of) GQ GNQ 226
186 Equatorial Guinea Equatorial Guinea (Republic of) GQ GNQ 226
187 Eritrea (State of) Eritrea (State of) ER ERI 232
188 Eritrea Eritrea (State of) ER ERI 232
189 Estonia (Republic of) Estonia (Republic of) EE EST 233
190 Estonia Estonia (Republic of) EE EST 233
191 Eswatini (Kingdom of) Eswatini (Kingdom of) SZ SWZ 748
192 Eswatini (Swaziland) Eswatini (Kingdom of) SZ SWZ 748
193 Eswatini Eswatini (Kingdom of) SZ SWZ 748
194 Kingdom of Eswatini Eswatini (Kingdom of) SZ SWZ 748
195 Swaziland Eswatini (Kingdom of) SZ SWZ 748
196 Ethiopia (Federal Democratic Republic of) Ethiopia (Federal Democratic Republic of) ET ETH 231
197 Ethiopia Ethiopia (Federal Democratic Republic of) ET ETH 231
198 Falkland Islands (Malvinas) Falkland Islands (Malvinas) FK FLK 238
199 Falkland Islands/Malvinas Falkland Islands (Malvinas) FK FLK 238
200 Falkland Islands Falkland Islands (Malvinas) FK FLK 238
201 Falkland Islands (UK) Falkland Islands (Malvinas) FK FLK 238
202 Falkland Islands (United Kingdom) Falkland Islands (Malvinas) FK FLK 238
203 Faroe Islands Faroe Islands FO FRO 234
204 Faeroe Islands Faroe Islands FO FRO 234
205 Faroe Islands (Denmark) Faroe Islands FO FRO 234
206 Fiji (Republic of) Fiji (Republic of) FJ FJI 242
207 Fiji Fiji (Republic of) FJ FJI 242
208 Finland (Republic of) Finland (Republic of) FI FIN 246
209 Finland Finland (Republic of) FI FIN 246
210 France (French Republic) France (French Republic) FR FRA 250
211 France France (French Republic) FR FRA 250
212 France (Metropolitan) France (Metropolitan) FX FXX 249
213 France (metropolitan) France (Metropolitan) FX FXX 249
214 France Afars and Issas France Afars and Issas AI AFI null
215 French Guiana French Guiana GF GUF 254
216 French Guiana (France) French Guiana GF GUF 254
217 French Polynesia French Polynesia PF PYF 258
218 French Polynesia (France) French Polynesia PF PYF 258
219 French Polynesia (territory of France) French Polynesia PF PYF 258
220 French Southern and Antarctic Territories French Southern and Antarctic Territories FQ ATF null
221 French Southern and Antarctic Lands French Southern and Antarctic Territories FQ ATF null
222 French Southern Territories French Southern Territories TF ATF 260
223 French Southern Territories (France) French Southern Territories TF ATF 260
224 Gabon (Gabonese Republic) Gabon (Gabonese Republic) GA GAB 266
225 Gabon Gabon (Gabonese Republic) GA GAB 266
226 Gambia (Republic of the) Gambia (Republic of the) GM GMB 270
227 Gambia Gambia (Republic of the) GM GMB 270
228 Gambia The Gambia (Republic of the) GM GMB 270
229 The Gambia Gambia (Republic of the) GM GMB 270
230 Georgia Georgia GE GEO 268
231 German Democratic Republic German Democratic Republic DD DDR 278
232 Germany (Federal Republic of) Germany (Federal Republic of) DE DEU 276
233 Germany Germany (Federal Republic of) DE DEU 276
234 Ghana (Republic of) Ghana (Republic of) GH GHA 288
235 Ghana Ghana (Republic of) GH GHA 288
236 Gibraltar Gibraltar GI GIB 292
237 Gibraltar (UK) Gibraltar GI GIB 292
238 Gibraltar (United Kingdom) Gibraltar GI GIB 292
239 Gilbert Islands Gilbert Islands GE GEL null
240 Greece (Hellenic Republic) Greece (Hellenic Republic) GR GRC 300
241 Greece Greece (Hellenic Republic) GR GRC 300
242 Greenland Greenland GL GRL 304
243 Greenland (Denmark) Greenland GL GRL 304
244 Grenada Grenada GD GRD 308
245 Guadeloupe Guadeloupe GP GLP 312
246 Guadeloupe (France) Guadeloupe GP GLP 312
247 Guam Guam GU GUM 316
248 Guam (US) Guam GU GUM 316
249 Guam (United States) Guam GU GUM 316
250 Guatemala (Republic of) Guatemala (Republic of) GT GTM 320
251 Guatemala Guatemala (Republic of) GT GTM 320
252 Guernsey (Bailiwick of) Guernsey (Bailiwick of) GG GGY 831
253 Guernsey (UK) Guernsey (Bailiwick of) GG GGY 831
254 Guernsey (British Crown Dependency) Guernsey (Bailiwick of) GG GGY 831
255 Guernsey (Channel Islands UK) Guernsey (Bailiwick of) GG GGY 831
256 Guernsey Guernsey (Bailiwick of) GG GGY 831
257 Guinea (Republic of) Guinea (Republic of) GN GIN 324
258 Guinea Guinea (Republic of) GN GIN 324
259 Guinea-Bissau (Republic of) Guinea-Bissau (Republic of) GW GNB 624
260 Guinea-Bissau Guinea-Bissau (Republic of) GW GNB 624
261 Guinea Bissau Guinea-Bissau (Republic of) GW GNB 624
262 Guyana (Co-operative Republic of) Guyana (Co-operative Republic of) GY GUY 328
263 Guyana Guyana (Co-operative Republic of) GY GUY 328
264 Haiti (Republic of) Haiti (Republic of) HT HTI 332
265 Haiti Haiti (Republic of) HT HTI 332
266 Heard Island and McDonald Islands Heard Island and McDonald Islands HM HMD 334
267 Heard Island and McDonald Islands (Australia) Heard Island and McDonald Islands HM HMD 334
268 Holy See (Vatican City State) Holy See (Vatican City State) VA VAT 336
269 Holy See Holy See (Vatican City State) VA VAT 336
270 Vatican City Holy See (Vatican City State) VA VAT 336
271 Vatican Holy See (Vatican City State) VA VAT 336
272 Honduras (Republic of) Honduras (Republic of) HN HND 340
273 Honduras Honduras (Republic of) HN HND 340
274 Hong Kong (Special Administrative Region of China) Hong Kong (Special Administrative Region of China) HK HKG 344
275 Hong Kong (China) Hong Kong (Special Administrative Region of China) HK HKG 344
276 Hong Kong SAR China Hong Kong (Special Administrative Region of China) HK HKG 344
277 Hong Kong SAR Hong Kong (Special Administrative Region of China) HK HKG 344
278 China Hong Kong SAR Hong Kong (Special Administrative Region of China) HK HKG 344
279 Hong Kong Hong Kong (Special Administrative Region of China) HK HKG 344
280 Hungary (Republic of) Hungary (Republic of) HU HUN 348
281 Hungary Hungary (Republic of) HU HUN 348
282 Iceland (Republic of) Iceland (Republic of) IS ISL 352
283 Iceland Iceland (Republic of) IS ISL 352
284 India (Republic of) India (Republic of) IN IND 356
285 India India (Republic of) IN IND 356
286 Indonesia (Republic of) Indonesia (Republic of) ID IDN 360
287 Indonesia Indonesia (Republic of) ID IDN 360
288 Iran (Islamic Republic of) Iran (Islamic Republic of) IR IRN 364
289 Iran (Islamic Republic of Iran) Iran (Islamic Republic of) IR IRN 364
290 Iran Islamic Rep Iran (Islamic Republic of) IR IRN 364
291 Iran Iran (Islamic Republic of) IR IRN 364
292 Iraq (Republic of) Iraq (Republic of) IQ IRQ 368
293 Iraq Iraq (Republic of) IQ IRQ 368
294 Ireland Ireland IE IRL 372
295 Isle of Man Isle of Man IM IMN 833
296 Isle of Man (UK) Isle of Man IM IMN 833
297 Isle of Man (British Crown Dependency) Isle of Man IM IMN 833
298 Israel (State of) Israel (State of) IL ISR 376
299 Israel Israel (State of) IL ISR 376
300 Italy (Italian Republic) Italy (Italian Republic) IT ITA 380
301 Italy Italy (Italian Republic) IT ITA 380
302 Jamaica Jamaica JM JAM 388
303 Japan Japan JP JPN 392
304 Jersey (Bailiwick of) Jersey (Bailiwick of) JE JEY 832
305 Jersey (British Crown Dependency) Jersey (Bailiwick of) JE JEY 832
306 Jersey (UK) Jersey (Bailiwick of) JE JEY 832
307 Jersey (Channel Islands UK) Jersey (Bailiwick of) JE JEY 832
308 Channel Islands Jersey (Bailiwick of) JE JEY 832
309 Jersey Jersey (Bailiwick of) JE JEY 832
310 Guernsey and Jersey Jersey (Bailiwick of) JE JEY 832
311 Johnston Island Johnston Island JT JTN 396
312 Jordan (Hashemite Kingdom of) Jordan (Hashemite Kingdom of) JO JOR 400
313 Jordan Jordan (Hashemite Kingdom of) JO JOR 400
314 Kazakhstan (Republic of) Kazakhstan (Republic of) KZ KAZ 398
315 Kazakhstan Kazakhstan (Republic of) KZ KAZ 398
316 Kenya (Republic of) Kenya (Republic of) KE KEN 404
317 Kenya Kenya (Republic of) KE KEN 404
318 Kiribati (Republic of) Kiribati (Republic of) KI KIR 296
319 Kiribati Kiribati (Republic of) KI KIR 296
320 Korea (Democratic People's Republic of) Korea (Democratic People's Republic of) KP PRK 408
321 Korea Dem People's Rep. Korea (Democratic People's Republic of) KP PRK 408
322 Dem People's Republic of Korea Korea (Democratic People's Republic of) KP PRK 408
323 Korea North Korea (Democratic People's Republic of) KP PRK 408
324 North Korea Korea (Democratic People's Republic of) KP PRK 408
325 Korea (Republic of) Korea (Republic of) KR KOR 410
326 Korea Rep Korea (Republic of) KR KOR 410
327 Korea South Korea (Republic of) KR KOR 410
328 South Korea Korea (Republic of) KR KOR 410
329 Kosovo (Republic of) Kosovo (Republic of) XK XKX
330 Kosovo Kosovo (Republic of) XK XKX
331 Kuwait (State of) Kuwait (State of) KW KWT 414
332 Kuwait Kuwait (State of) KW KWT 414
333 Kyrgyz Republic Kyrgyz Republic KG KGZ 417
334 Kyrgyzstan Kyrgyz Republic KG KGZ 417
335 Lao (People's Democratic Republic) Lao (People's Democratic Republic) LA LAO 418
336 Lao People's Democratic Republic Lao (People's Democratic Republic) LA LAO 418
337 Lao PDR Lao (People's Democratic Republic) LA LAO 418
338 Lao P.D.R. Lao (People's Democratic Republic) LA LAO 418
339 Laos Lao (People's Democratic Republic) LA LAO 418
340 Latvia (Republic of) Latvia (Republic of) LV LVA 428
341 Latvia Latvia (Republic of) LV LVA 428
342 Lebanon (Lebanese Republic) Lebanon (Lebanese Republic) LB LBN 422
343 Lebanon Lebanon (Lebanese Republic) LB LBN 422
344 Lesotho (Kingdom of) Lesotho (Kingdom of) LS LSO 426
345 Lesotho Lesotho (Kingdom of) LS LSO 426
346 Liberia (Republic of) Liberia (Republic of) LR LBR 430
347 Liberia Liberia (Republic of) LR LBR 430
348 Libya (State of) Libya (State of) LY LBY 434
349 Libya Libya (State of) LY LBY 434
350 Liechtenstein (Principality of) Liechtenstein (Principality of) LI LIE 438
351 Liechtenstein Liechtenstein (Principality of) LI LIE 438
352 Lithuania (Republic of) Lithuania (Republic of) LT LTU 440
353 Lithuania Lithuania (Republic of) LT LTU 440
354 Luxembourg (Grand Duchy of) Luxembourg (Grand Duchy of) LU LUX 442
355 Luxembourg Luxembourg (Grand Duchy of) LU LUX 442
356 Macao (Special Administrative Region of China) Macao (Special Administrative Region of China) MO MAC 446
357 Macao Macao (Special Administrative Region of China) MO MAC 446
358 Macao SAR China Macao (Special Administrative Region of China) MO MAC 446
359 China Macao SAR Macao (Special Administrative Region of China) MO MAC 446
360 Macao SAR Macao (Special Administrative Region of China) MO MAC 446
361 Macau Macao (Special Administrative Region of China) MO MAC 446
362 Macau (China) Macao (Special Administrative Region of China) MO MAC 446
363 Macao (China) Macao (Special Administrative Region of China) MO MAC 446
364 Madagascar (Republic of) Madagascar (Republic of) MG MDG 450
365 Madagascar Madagascar (Republic of) MG MDG 450
366 Malawi (Republic of) Malawi (Republic of) MW MWI 454
367 Malawi Malawi (Republic of) MW MWI 454
368 Malaysia Malaysia MY MYS 458
369 Maldives (Republic of) Maldives (Republic of) MV MDV 462
370 Maldives Maldives (Republic of) MV MDV 462
371 Mali (Republic of) Mali (Republic of) ML MLI 466
372 Mali Mali (Republic of) ML MLI 466
373 Malta (Republic of) Malta (Republic of) MT MLT 470
374 Malta Malta (Republic of) MT MLT 470
375 Marshall Islands (Republic of the) Marshall Islands (Republic of the) MH MHL 584
376 Marshall Islands Marshall Islands (Republic of the) MH MHL 584
377 Martinique Martinique MQ MTQ 474
378 Martinique (France) Martinique MQ MTQ 474
379 Mauritania (Islamic Republic of) Mauritania (Islamic Republic of) MR MRT 478
380 Mauritania Mauritania (Islamic Republic of) MR MRT 478
381 Mauritius (Republic of) Mauritius (Republic of) MU MUS 480
382 Mauritius Mauritius (Republic of) MU MUS 480
383 Mayotte (Department of) Mayotte (Department of) YT MYT 175
384 Mayotte Mayotte (Department of) YT MYT 175
385 Mayotte (France) Mayotte (Department of) YT MYT 175
386 Mexico (United Mexican States) Mexico (United Mexican States) MX MEX 484
387 Mexico Mexico (United Mexican States) MX MEX 484
388 Micronesia (Federated States of) Micronesia (Federated States of) FM FSM 583
389 Micronesia (Fed States of) Micronesia (Federated States of) FM FSM 583
390 Micronesia Federated States of Micronesia (Federated States of) FM FSM 583
391 Federated States of Micronesia Micronesia (Federated States of) FM FSM 583
392 Micronesia Fed Sts. Micronesia (Federated States of) FM FSM 583
393 Micronesia Micronesia (Federated States of) FM FSM 583
394 Midway Island Midway Island MI MID 488
395 Midway Islands Midway Island MI MID 488
396 Moldova (Republic of) Moldova (Republic of) MD MDA 498
397 Republic of Moldova Moldova (Republic of) MD MDA 498
398 Moldova Moldova (Republic of) MD MDA 498
399 Monaco (Principality of) Monaco (Principality of) MC MCO 492
400 Monaco Monaco (Principality of) MC MCO 492
401 Mongolia Mongolia MN MNG 496
402 Montenegro Montenegro ME MNE 499
403 Montserrat Montserrat MS MSR 500
404 Montserrat (UK) Montserrat MS MSR 500
405 Montserrat (United Kingdom) Montserrat MS MSR 500
406 Morocco (Kingdom of) Morocco (Kingdom of) MA MAR 504
407 Morocco Morocco (Kingdom of) MA MAR 504
408 Mozambique (Republic of) Mozambique (Republic of) MZ MOZ 508
409 Mozambique Mozambique (Republic of) MZ MOZ 508
410 Myanmar (Union of) Myanmar (Union of) MM MMR 104
411 Myanmar Myanmar (Union of) MM MMR 104
412 Myanmar(Burma) Myanmar (Union of) MM MMR 104
413 Myanmar (Burma) Myanmar (Union of) MM MMR 104
414 Namibia (Republic of) Namibia (Republic of) NA NAM 516
415 Namibia Namibia (Republic of) NA NAM 516
416 Nauru (Republic of) Nauru (Republic of) NR NRU 520
417 Nauru Nauru (Republic of) NR NRU 520
418 Nepal (Federal Democratic Republic of) Nepal (Federal Democratic Republic of) NP NPL 524
419 Nepal Nepal (Federal Democratic Republic of) NP NPL 524
420 Netherland Antilles Netherland Antilles AN ANT 530
421 Netherlands (Kingdom of the) Netherlands (Kingdom of the) NL NLD 528
422 Netherlands Netherlands (Kingdom of the) NL NLD 528
423 Neutral Zone Neutral Zone NT NTZ 536
424 New Caledonia New Caledonia NC NCL 540
425 New Caledonia (France) New Caledonia NC NCL 540
426 New Caledonia (territory of France) New Caledonia NC NCL 540
427 New Hebrides New Hebrides NH NHB null
428 New Zealand New Zealand NZ NZL 554
429 Nicaragua (Republic of) Nicaragua (Republic of) NI NIC 558
430 Nicaragua Nicaragua (Republic of) NI NIC 558
431 Niger (Republic of) Niger (Republic of) NE NER 562
432 Niger Niger (Republic of) NE NER 562
433 Nigeria (Federal Republic of) Nigeria (Federal Republic of) NG NGA 566
434 Nigeria Nigeria (Federal Republic of) NG NGA 566
435 Niue Niue NU NIU 570
436 Niue (New Zealand) Niue NU NIU 570
437 Norfolk Island Norfolk Island NF NFK 574
438 Norfolk Island (Australia) Norfolk Island NF NFK 574
439 North Macedonia (Republic of) North Macedonia (Republic of) MK MKD 807
440 North Macedonia North Macedonia (Republic of) MK MKD 807
441 Macedonia North Macedonia (Republic of) MK MKD 807
442 Northern Mariana Islands (Commonwealth of the) Northern Mariana Islands (Commonwealth of the) MP MNP 580
443 Northern Mariana Islands Northern Mariana Islands (Commonwealth of the) MP MNP 580
444 Northern Mariana Islands (United States) Northern Mariana Islands (Commonwealth of the) MP MNP 580
445 Northern Mariana Islands (US) Northern Mariana Islands (Commonwealth of the) MP MNP 580
446 Northern Mariana Islands (USA) Northern Mariana Islands (Commonwealth of the) MP MNP 580
447 Norway (Kingdom of) Norway (Kingdom of) NO NOR 578
448 Norway (mainland) Norway (Kingdom of) NO NOR 578
449 Norway Norway (Kingdom of) NO NOR 578
450 Oman (Sultanate of) Oman (Sultanate of) OM OMN 512
451 Oman Oman (Sultanate of) OM OMN 512
452 Pacific Islands (Trust Territory) Pacific Islands (Trust Territory) PC PCI 582
453 Pakistan (Islamic Republic of) Pakistan (Islamic Republic of) PK PAK 586
454 Pakistan Pakistan (Islamic Republic of) PK PAK 586
455 Palau (Republic of) Palau (Republic of) PW PLW 585
456 Palau Palau (Republic of) PW PLW 585
457 Palestine (State of) Palestine (State of) PS PSE 275
458 Palestine State of Palestine (State of) PS PSE 275
459 State of Palestine Palestine (State of) PS PSE 275
460 Palestine Palestine (State of) PS PSE 275
461 West Bank and Gaza Palestine (State of) PS PSE 275
462 Palestine (Gaza Strip) Palestine (State of) PS PSE 275
463 Palestine (West Bank) Palestine (State of) PS PSE 275
464 Gaza Strip Palestine (State of) PS PSE 275
465 Palestine/West Bank Palestine (State of) PS PSE 275
466 Palestine/Gaza Palestine (State of) PS PSE 275
467 West Bank Palestine (State of) PS PSE 275
468 West Bank/Palestine Palestine (State of) PS PSE 275
469 Panama (Republic of) Panama (Republic of) PA PAN 591
470 Panama Panama (Republic of) PA PAN 591
471 Panama Canal Zone Panama Canal Zone PZ PCZ null
472 Papua New Guinea (Independent State of) Papua New Guinea (Independent State of) PG PNG 598
473 Papua New Guinea Papua New Guinea (Independent State of) PG PNG 598
474 Paraguay (Republic of) Paraguay (Republic of) PY PRY 600
475 Paraguay Paraguay (Republic of) PY PRY 600
476 Peru (Republic of) Peru (Republic of) PE PER 604
477 Peru Peru (Republic of) PE PER 604
478 Philippines (Republic of the) Philippines (Republic of the) PH PHL 608
479 Philippines Philippines (Republic of the) PH PHL 608
480 Pitcairn Islands Pitcairn Islands PN PCN 612
481 Pitcairn Islands (United Kingdom) Pitcairn Islands PN PCN 612
482 Pitcairn Islands (UK) Pitcairn Islands PN PCN 612
483 Poland (Republic of) Poland (Republic of) PL POL 616
484 Poland Poland (Republic of) PL POL 616
485 Portugal (Portuguese Republic) Portugal (Portuguese Republic) PT PRT 620
486 Portugal Portugal (Portuguese Republic) PT PRT 620
487 Puerto Rico (Commonwealth of) Puerto Rico (Commonwealth of) PR PRI 630
488 Puerto Rico Puerto Rico (Commonwealth of) PR PRI 630
489 Puerto Rico (US) Puerto Rico (Commonwealth of) PR PRI 630
490 Puerto Rico (USA) Puerto Rico (Commonwealth of) PR PRI 630
491 Puerto Rico (United States) Puerto Rico (Commonwealth of) PR PRI 630
492 Qatar (State of) Qatar (State of) QA QAT 634
493 Qatar Qatar (State of) QA QAT 634
494 Réunion Réunion RE REU 638
495 Réunion (France) Réunion RE REU 638
496 Reunion Réunion RE REU 638
497 Romania Romania RO ROU 642
498 Russian Federation Russian Federation RU RUS 643
499 Russia Russian Federation RU RUS 643
500 Rwanda (Republic of) Rwanda (Republic of) RW RWA 646
501 Rwanda Rwanda (Republic of) RW RWA 646
502 Sahrawi Arab Democratic Republic Sahrawi Arab Democratic Republic EH ESH 732
503 Western Sahara Sahrawi Arab Democratic Republic EH ESH 732
504 Western Sahara (Sahrawi) Sahrawi Arab Democratic Republic EH ESH 732
505 Saint Barthelemy Saint Barthelemy BL BLM 652
506 Saint Barthelemy (France) Saint Barthelemy BL BLM 652
507 Saint Barthélemy (France) Saint Barthelemy BL BLM 652
508 Saint Barthélemy Saint Barthelemy BL BLM 652
509 Saint Helena Saint Helena SH SHN 654
510 Saint Helena Ascension and Tristan da Cunha Saint Helena SH SHN 654
511 Saint Helena Ascension and Tristan da Cunha (UK) Saint Helena SH SHN 654
512 Saint Helena Ascension and Tristan da Cunha (United Kingdom) Saint Helena SH SHN 654
513 Saint Helena & dependencies (UK) Saint Helena SH SHN 654
514 Saint Kitts and Nevis (Federation of) Saint Kitts and Nevis (Federation of) KN KNA 659
515 Saint Kitts and Nevis Saint Kitts and Nevis (Federation of) KN KNA 659
516 Saint Kitts And Nevis Saint Kitts and Nevis (Federation of) KN KNA 659
517 St Kitts and Nevis Saint Kitts and Nevis (Federation of) KN KNA 659
518 St Kitts & Nevis Saint Kitts and Nevis (Federation of) KN KNA 659
519 Saint Lucia Saint Lucia LC LCA 662
520 St Lucia Saint Lucia LC LCA 662
521 Saint Martin Saint Martin MF MAF 663
522 Saint Martin (France) Saint Martin MF MAF 663
523 St Martin (French part) Saint Martin MF MAF 663
524 Saint Martin (French part) Saint Martin MF MAF 663
525 Saint Martin (France) (French part) Saint Martin MF MAF 663
526 Saint Pierre and Miquelon Saint Pierre and Miquelon PM SPM 666
527 Saint Pierre and Miquelon (France) Saint Pierre and Miquelon PM SPM 666
528 Saint Vincent and the Grenadines Saint Vincent and the Grenadines VC VCT 670
529 Saint Vincent And The Grenadines Saint Vincent and the Grenadines VC VCT 670
530 St Vincent and the Grenadines Saint Vincent and the Grenadines VC VCT 670
531 Samoa (Independent State of) Samoa (Independent State of) WS WSM 882
532 Samoa Samoa (Independent State of) WS WSM 882
533 Western Samoa Samoa (Independent State of) WS WSM 882
534 San Marino (Republic of) San Marino (Republic of) SM SMR 674
535 San Marino San Marino (Republic of) SM SMR 674
536 São Tomé and Príncipe (Democratic Republic of) São Tomé and Príncipe (Democratic Republic of) ST STP 678
537 São Tomé and Príncipe São Tomé and Príncipe (Democratic Republic of) ST STP 678
538 Sao Tome And Principe São Tomé and Príncipe (Democratic Republic of) ST STP 678
539 Sao Tome and Principe São Tomé and Príncipe (Democratic Republic of) ST STP 678
540 Saudi Arabia (Kingdom of) Saudi Arabia (Kingdom of) SA SAU 682
541 Saudi Arabia Saudi Arabia (Kingdom of) SA SAU 682
542 Senegal (Republic of) Senegal (Republic of) SN SEN 686
543 Senegal Senegal (Republic of) SN SEN 686
544 Serbia (Republic of) Serbia (Republic of) RS SRB 688
545 Serbia Serbia (Republic of) RS SRB 688
546 Serbia and Montenegro Serbia and Montenegro CS SCG 891
547 Seychelles (Republic of) Seychelles (Republic of) SC SYC 690
548 Seychelles Seychelles (Republic of) SC SYC 690
549 Sierra Leone (Republic of) Sierra Leone (Republic of) SL SLE 694
550 Sierra Leone Sierra Leone (Republic of) SL SLE 694
551 Sikkim Sikkim SK SKM null
552 Singapore (Republic of) Singapore (Republic of) SG SGP 702
553 Singapore Singapore (Republic of) SG SGP 702
554 Sint Maarten (Netherlands) Sint Maarten (Netherlands) SX SXM 534
555 Sint Maarten(Netherlands) Sint Maarten (Netherlands) SX SXM 534
556 Sint Maarten (Dutch part) Sint Maarten (Netherlands) SX SXM 534
557 Sint Maarten Sint Maarten (Netherlands) SX SXM 534
558 Netherlands Antilles Sint Maarten (Netherlands) SX SXM 534
559 Slovakia (Slovak Republic) Slovakia (Slovak Republic) SK SVK 703
560 Slovak Republic Slovakia (Slovak Republic) SK SVK 703
561 Slovakia Slovakia (Slovak Republic) SK SVK 703
562 Slovenia (Republic of) Slovenia (Republic of) SI SVN 705
563 Slovenia Slovenia (Republic of) SI SVN 705
564 Solomon Islands Solomon Islands SB SLB 90
565 Somalia (Federal Republic of) Somalia (Federal Republic of) SO SOM 706
566 Somalia Somalia (Federal Republic of) SO SOM 706
567 Somaliland (Republic of) Somaliland (Republic of)
568 Somaliland Somaliland (Republic of)
569 South Africa (Republic of) South Africa (Republic of) ZA ZAF 710
570 South Africa South Africa (Republic of) ZA ZAF 710
571 South Georgia and the South Sandwich Islands South Georgia and the South Sandwich Islands GS SGS 239
572 South Georgia and the South Sandwich Islands (United Kingdom) South Georgia and the South Sandwich Islands GS SGS 239
573 South Ossetia (Republic of) (the State of Alania) South Ossetia (Republic of) (the State of Alania)
574 South Ossetia South Ossetia (Republic of) (the State of Alania)
575 South Sudan (Republic of) South Sudan (Republic of) SS SSD 728
576 South Sudan South Sudan (Republic of) SS SSD 728
577 Sudan South South Sudan (Republic of) SS SSD 728
578 Southern Rhodesia Southern Rhodesia RH RHO null
579 Soviet Union Soviet Union SU SUN 810
580 Spain (Kingdom of) Spain (Kingdom of) ES ESP 724
581 Spain Spain (Kingdom of) ES ESP 724
582 Spratly Islands Spratly Islands XS null null
583 Spratly Islands (disputed) Spratly Islands XS null null
584 Sri Lanka (Democratic Socialist Republic of) Sri Lanka (Democratic Socialist Republic of) LK LKA 144
585 Sri Lanka Sri Lanka (Democratic Socialist Republic of) LK LKA 144
586 Sudan (Republic of the) Sudan (Republic of the) SD SDN 729
587 Sudan Sudan (Republic of the) SD SDN 729
588 Suriname (Republic of) Suriname (Republic of) SR SUR 740
589 Suriname Suriname (Republic of) SR SUR 740
590 Svalbard and Jan Mayen Islands Svalbard and Jan Mayen Islands SJ SJM 744
591 Svalbard and Jan Mayen Svalbard and Jan Mayen Islands SJ SJM 744
592 Svalbard Svalbard and Jan Mayen Islands SJ SJM 744
593 Svalbard (Norway) Svalbard and Jan Mayen Islands SJ SJM 744
594 Jan Mayen Svalbard and Jan Mayen Islands SJ SJM 744
595 Jan Mayen (Norway) Svalbard and Jan Mayen Islands SJ SJM 744
596 Sweden (Kingdom of) Sweden (Kingdom of) SE SWE 752
597 Sweden Sweden (Kingdom of) SE SWE 752
598 Switzerland (Swiss Confederation) Switzerland (Swiss Confederation) CH CHE 756
599 Switzerland Switzerland (Swiss Confederation) CH CHE 756
600 Syrian Arab Republic Syrian Arab Republic SY SYR 760
601 Syria Syrian Arab Republic SY SYR 760
602 Taiwan Taiwan TW TWN 158
603 Taiwan (Republic of China) Taiwan TW TWN 158
604 Tajikistan (Republic of) Tajikistan (Republic of) TJ TJK 762
605 Tajikistan Tajikistan (Republic of) TJ TJK 762
606 Tanzania (United Republic of) Tanzania (United Republic of) TZ TZA 834
607 United Republic of Tanzania Tanzania (United Republic of) TZ TZA 834
608 Tanzania Tanzania (United Republic of) TZ TZA 834
609 Thailand (Kingdom of) Thailand (Kingdom of) TH THA 764
610 Thailand Thailand (Kingdom of) TH THA 764
611 Timor-Leste (Democratic Republic of) Timor-Leste (Democratic Republic of) TL TLS 626
612 Timor-Leste Timor-Leste (Democratic Republic of) TL TLS 626
613 Timor Leste Timor-Leste (Democratic Republic of) TL TLS 626
614 East Timor Timor-Leste (Democratic Republic of) TL TLS 626
615 Timor Timor-Leste (Democratic Republic of) TL TLS 626
616 Togo (Togolese Republic) Togo (Togolese Republic) TG TGO 768
617 Togo Togo (Togolese Republic) TG TGO 768
618 Tokelau Tokelau TK TKL 772
619 Tokelau (New Zealand) Tokelau TK TKL 772
620 Tonga (Kingdom of) Tonga (Kingdom of) TO TON 776
621 Tonga Tonga (Kingdom of) TO TON 776
622 Transnistria (Pridnestrovian Moldavian Republic) Translistria (Pridnestrovian Moldavian Republic)
623 Transnistria Translistria (Pridnestrovian Moldavian Republic)
624 Trinidad and Tobago (Republic of) Trinidad and Tobago (Republic of) TT TTO 780
625 Trinidad and Tobago Trinidad and Tobago (Republic of) TT TTO 780
626 Trinidad & Tobago Trinidad and Tobago (Republic of) TT TTO 780
627 Trinidad And Tobago Trinidad and Tobago (Republic of) TT TTO 780
628 Tunisia (Republic of) Tunisia (Republic of) TN TUN 788
629 Tunisia Tunisia (Republic of) TN TUN 788
630 Turkey (Republic of) Turkey (Republic of) TR TUR 792
631 Turkey Turkey (Republic of) TR TUR 792
632 Turkmenistan Turkmenistan TM TKM 795
633 Turks and Caicos Islands Turks and Caicos Islands TC TCA 796
634 Turks And Caicos Islands Turks and Caicos Islands TC TCA 796
635 Turks and Caicos Islands (UK) Turks and Caicos Islands TC TCA 796
636 Turks and Caicos Islands (United Kingdom) Turks and Caicos Islands TC TCA 796
637 Tuvalu Tuvalu TV TUV 798
638 Uganda (Republic of) Uganda (Republic of) UG UGA 800
639 Uganda Uganda (Republic of) UG UGA 800
640 Ukraine Ukraine UA UKR 804
641 United Arab Emirates United Arab Emirates AE ARE 784
642 United Kingdom (of Great Britain & Northern Ireland) United Kingdom (of Great Britain & Northern Ireland) GB GBR 826
643 United Kingdom United Kingdom (of Great Britain & Northern Ireland) GB GBR 826
644 Great Britain United Kingdom (of Great Britain & Northern Ireland) GB GBR 826
645 United Nations Neutral Zone United Nations Neutral Zone XD null null
646 United States (of America) United States (of America) US USA 840
647 United States of America United States (of America) US USA 840
648 United States United States (of America) US USA 840
649 United States Minor Outlying Islands United States Minor Outlying Islands UM UMI 581
650 United States Miscellaneous Pacific Islands United States Miscellaneous Pacific Islands PU PUS 849
651 United States Virgin Islands United States Virgin Islands VI VIR 850
652 US Virgin Islands United States Virgin Islands VI VIR 850
653 US. Virgin Islands United States Virgin Islands VI VIR 850
654 U.S. Virgin Islands United States Virgin Islands VI VIR 850
655 U.S. Virgin Islands (US) United States Virgin Islands VI VIR 850
656 U.S. Virgin Islands (United States) United States Virgin Islands VI VIR 850
657 US. Virgin Islands (United States) United States Virgin Islands VI VIR 850
658 US Virgin Islands (US) United States Virgin Islands VI VIR 850
659 Virgin Islands (US.) United States Virgin Islands VI VIR 850
660 Virgin Islands (US) United States Virgin Islands VI VIR 850
661 Virgin Islands United States Virgin Islands VI VIR 850
662 Upper Volta Upper Volta HV HVO 854
663 Uruguay (Oriental Republic of) Uruguay (Oriental Republic of) UY URY 858
664 Uruguay Uruguay (Oriental Republic of) UY URY 858
665 Uzbekistan (Republic of) Uzbekistan (Republic of) UZ UZB 860
666 Uzbekistan Uzbekistan (Republic of) UZ UZB 860
667 Vanuatu (Republic of) Vanuatu (Republic of) VU VUT 548
668 Vanuatu Vanuatu (Republic of) VU VUT 548
669 Venezuela (Bolivarian Republic of) Venezuela (Bolivarian Republic of) VE VEN 862
670 Venezuela RB Venezuela (Bolivarian Republic of) VE VEN 862
671 Venezuela Venezuela (Bolivarian Republic of) VE VEN 862
672 Vietnam (Socialist Republic of) Vietnam (Socialist Republic of) VN VNM 704
673 Vietnam Vietnam (Socialist Republic of) VN VNM 704
674 Viet Nam Vietnam (Socialist Republic of) VN VNM 704
675 Wake Island Wake Island WK WAK 872
676 Wallis and Futuna Wallis and Futuna WF WLF 876
677 Wallis and Futuna (France) Wallis and Futuna WF WLF 876
678 Wallis and Futuna Islands Wallis and Futuna WF WLF 876
679 Yemen (Republic of) Yemen (Republic of) YE YEM 887
680 Yemen Rep Yemen (Republic of) YE YEM 887
681 Yemen Yemen (Republic of) YE YEM 887
682 Yugoslavia Yugoslavia YU YUG 891
683 Zaire Zaire ZR ZAR
684 Zambia (Republic of) Zambia (Republic of) ZM ZMB 894
685 Zambia Zambia (Republic of) ZM ZMB 894
686 Zanzibar Zanzibar
687 Zimbabwe (Republic of) Zimbabwe (Republic of) ZW ZWE 716
688 Zimbabwe Zimbabwe (Republic of) ZW ZWE 716

3
conf/wikipedia.txt Normal file
View File

@ -0,0 +1,3 @@
https://en.wikipedia.org/wiki/Epidemiology_of_depression
https://en.wikipedia.org/wiki/Global_Competitiveness_Report
https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_area

0
data/.gitkeep Normal file
View File

353
masterscraper/__init__.py Normal file
View File

@ -0,0 +1,353 @@
#!/usr/bin/python3
import pandas as pd
import requests
import re
import os
from bs4 import BeautifulSoup
from datetime import date
from . import wikipedia
from . import macrotrends
# Check If String Is Number
def isfloat(num):
try:
float(num)
return True
except:
return False
# Load URL Scrape List
def scrapelist(filename):
f = open(filename, 'r')
tmp_list = [l.strip() for l in f.readlines()]
f.close()
return(tmp_list)
class scrape:
#--------[ Global Variables ]--------#
meta = {} # Metadata
data = [] # Actual Data
data_info = [] # Variable information to split data table to seperate JSON files
#--------[ Scrape Constructor Object ]--------#
def __init__(self, url):
self.meta = {
"name" : None,
"description" : None,
"units" : None,
"year" : None,
"notes" : [],
"type" : None,
"scope" : None,
"category" : None,
"subcategory" : None,
"tags" : [],
"authors" : [],
"sources" : []
}
self.data = []
self.data_info = []
if url.find('wikipedia.org') >=0:
wikipedia.scrape(url, self.meta, self.data)
if url.find('macrotrends.net') >= 0:
macrotrends.scrape(url, self.meta, self.data)
#--------[ Scrape Deconstructor ]--------#
def __del__(self):
pass
#--------[ Show Scrape Data ]--------#
def show(self):
print(self.meta)
for row in self.data:
print(row)
#--------[ Get Metadata ]--------#
def get_meta(self):
# Get Key Names
self.data_info.append( [key for key in self.data[0]] )
# Process Key Names
key_name = []
for key in self.data_info[0]:
if(key.lower().find('country') >=0 or
key.lower().find('countries') >=0 or
key.lower().find('dependency') >=0 ):
key_name.append('country.name')
elif(key.lower().find('year') >=0):
key_name.append('country.name')
else:
tmp_key = self.meta['name']
tmp_key = tmp_key + ' ' + key
tmp_key = tmp_key.lower()
tmp_key = re.sub('\[.*\]', '', tmp_key)
tmp_key = re.sub('\(.*\)', '', tmp_key)
tmp_key = re.sub('km2', '', tmp_key)
tmp_key = re.sub('\ in\ ', '', tmp_key)
tmp_key = re.sub('$', '', tmp_key)
tmp_key = re.sub('%', 'percent', tmp_key)
tmp_key = re.sub('and\ dependencies ','',tmp_key)
tmp_key = re.sub('list\ of\ countries\ by\ ','',tmp_key)
tmp_key = tmp_key.strip()
tmp_key = tmp_key.replace(' ','.')
key_name.append( tmp_key )
self.data_info.append( key_name )
# Process Unit Type
key_unit = []
for key in self.data_info[0]:
if(key.lower().find('percent') >=0 or
key.lower().find('perc') >=0 or
key.lower().find('%') >=0 ):
key_unit.append('%')
elif(key.lower().find('dollar') >=0 or
key.lower().find('$') >=0 ):
key_unit.append('$')
elif(key.lower().find('euro') >=0 or
key.lower().find('') >=0 ):
key_unit.append('')
elif(key.lower().find('km2') >=0 or
key.lower().find('km²') >=0 or
key.lower().find('mi2') >=0 or
key.lower().find('mi²') >=0 ):
key_unit.append('km²')
elif(key.lower().find('country') >=0 or
key.lower().find('countries') >=0 or
key.lower().find('dependencies') >=0 ):
key_unit.append('countries')
elif(key.lower().find('index') >=0 or
key.lower().find('score') >=0 or
key.lower().find('report') >=0 ):
key_unit.append('index')
else:
key_unit.append('unkown')
self.data_info.append( key_unit )
# Process Variable Multiplyer
key_multiplyer = []
for key in self.data_info[0]:
if( key.lower().find('%') >=0 ):
key_multiplyer.append( 0.01 )
else:
key_multiplyer.append( 1.0 )
self.data_info.append( key_multiplyer )
# Get Year
key_year = []
for key in self.data_info[0]:
if re.match('\d\d\d\d', key):
key_year.append( key )
else:
key_year.append( date.today().strftime('%Y') )
self.data_info.append( key_year )
# Get Type
for key in self.data_info[1]:
if key == 'country.name': self.meta['type'] = 'global'
elif key == 'year': self.meta['type'] = 'historical'
elif key == 'us.county.fips': self.meta['type'] = 'regional'
elif key == 'uk.constituency.name': self.meta['type'] = 'regional'
if self.meta['type'] == None: self.meta['type'] = 'unkown'
# Get Scope
key_scope = []
for key in self.data_info[1]:
if key.find('male') >=0: key_scope.append( 'male' )
elif key.find('female') >=0: key_scope.append( 'female' )
elif key.find('black') >=0: key_scope.append( 'black' )
elif key.find('white') >=0: key_scope.append( 'white' )
elif key.find('asian') >=0: key_scope.append( 'asian' )
elif key.find('native') >=0: key_scope.append( 'native' )
elif key.find('urban') >=0: key_scope.append( 'urban' )
elif key.find('rural') >=0: key_scope.append( 'rural' )
else: key_scope.append( self.meta['type'] )
self.data_info.append( key_scope )
# Get Category
search = self.meta['name'].join(self.data_info[0]).lower().strip()
if( search.find('area') >=0 or
search.find('km2') >=0):
self.meta['category'] = 'geographic'
self.meta['subcategory'] = 'area'
elif( search.find('depression') >= 0 or
search.find('anxiety') >=0 ):
self.meta['category'] = 'health'
self.meta['subcategory'] = 'psychology'
elif( search.find('economic') >= 0 or
search.find('gdp') >=0 ):
self.meta['category'] = 'economic'
self.meta['subcategory'] = 'gdp'
elif( search.find('development') >= 0 or
search.find('competitive') >=0 ):
self.meta['category'] = 'technology'
self.meta['subcategory'] = 'development'
else:
self.meta['category'] = 'uncategorised'
# Get Tags
if not self.meta['type'] in self.meta['tags']: self.meta['tags'].append(self.meta['type'])
if not self.meta['category'] in self.meta['tags']: self.meta['tags'].append(self.meta['category'])
if not self.meta['subcategory'] in self.meta['tags']: self.meta['tags'].append(self.meta['subcategory'])
for scope in key_scope:
if not scope in self.meta['tags']: self.meta['tags'].append(scope)
#--------[ Clean Scrape Data ]--------#
def clean(self):
for x in range(1, len(self.data)):
for y in range(0, len(self.data[x])):
self.data[x][y] = self.data[x][y]
# Remove any inline notes from data
if isinstance(self.data[x][y], str):
self.data[x][y] = re.sub('\[.*\]','', self.data[x][y])
self.data[x][y] = re.sub('\(.*\)','', self.data[x][y])
self.data[x][y] = re.sub(',','', self.data[x][y])
# Convert numerical strings to floats
if isinstance(self.data[x][y], str):
self.data[x][y] = self.data[x][y].strip()
if any(i.isdigit() for i in self.data[x][y]):
self.data[x][y] = ''.join([i for i in self.data[x][y] if i.isdigit() or i=='.'])
# Convert To Float
if isfloat(self.data[x][y]):
self.data[x][y] = float(self.data[x][y])
# Apply Variable Multiplyer
self.data[x][y] = self.data[x][y] * self.data_info[3][y]
# Convert Whole Floats To Integers
if self.data[x][y].is_integer():
self.data[x][y] = int(self.data[x][y])
# Convert non-entries to null
if isinstance(self.data[x][y], str):
if( self.data[x][y].lower().find('not determined') >= 0 or
self.data[x][y].lower().find('negligible') >=0 or
self.data[x][y].lower().find('negligible') >=0 or
self.data[x][y].lower().find('unkown') >= 0 ):
self.data[x][y] = None
if( self.data[x][y] == '-' or
self.data[x][y] == '' ):
self.data[x][y] = None
#--------[ Save Scrape Data ]--------#
def save(self):
print('\n', self.meta['sources'])
key_main = 0
for i in range(0, len(self.data_info[1])):
if( self.data[0][i] == 'country.name' >= 0 or
self.data[0][i] == 'year' >= 0 ):
key_main = i
for key_data in range(0, len(self.data[0])):
if key_data != key_main:
#--------[ Generate Filename ]--------#
filename = self.data_info[1][key_data].replace('.','-')
filepath = 'data/{0}/{1}'.format(self.meta['type'], self.meta['category'])
if self.meta['subcategory'] != None: filepath = filepath + '/' + self.meta['subcategory']
if not os.path.exists(filepath):
os.makedirs(filepath)
fullpath = filepath + '/' + filename + '.json'
#--------[ Open File ]--------#
f = open(fullpath, "w")
f.write('{\n')
#--------[ Update Metadata ]--------#
self.meta['units'] = self.data_info[2][key_data]
self.meta['year'] = self.data_info[4][key_data]
self.meta['scope'] = self.data_info[5][key_data]
#--------[ Write Metadata ]
f.write(' "metadata" : {\n')
for i in self.meta:
if isinstance(self.meta[i], str):
f.write(' "{0}" : "{1}"'.format( i, self.meta[i] ))
elif self.meta[i] == None:
f.write(' "{0}" : null'.format( i ))
elif isinstance(self.meta[i], list):
if len(self.meta[i]) <= 0:
f.write(' "{0}" : []'.format( i ))
elif i == 'tags':
f.write(' "{0}" : ['.format( i ))
for j in self.meta[i]:
f.write('"{0}"'.format( j ))
if j != self.meta[i][-1]: f.write(',')
f.write(']'.format( i ))
else:
f.write(' "{0}" : [\n'.format( i ))
for j in self.meta[i]:
f.write(' "{0}"'.format( j ))
if j != self.meta[i][-1]: f.write(',\n')
else: f.write('\n')
f.write(' ]'.format( i ))
if i != list(self.meta.keys())[-1]: f.write(',\n')
else: f.write('\n')
f.write(' },\n')
#--------[ Write Actual Data ]--------#
f.write(' "data" : [\n')
f.write(' ["{0}","{1}"],\n'.format(self.data_info[1][key_main], self.data_info[1][key_data]))
for row in self.data[1:]:
if row[key_data] != None:
f.write(' ["{0}",{1}]'.format(row[key_main], row[key_data]))
else:
f.write(' ["{0}",null]'.format(row[key_main]))
if row != self.data[-1]: f.write(',\n')
else: f.write('\n')
f.write(' ]\n')
#--------[ Final Result ]--------#
f.write('}\n')
f.close()
print(' [{0} data points] -> {1}'.format(len(self.data)-1, fullpath))

View File

@ -0,0 +1,74 @@
#!/usr/bin/python3
import requests
import pandas as pd
import re
from bs4 import BeautifulSoup
from datetime import date
def scrape(url, meta, data):
#--------[ Get Page From URL ]--------#
headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET',
'Access-Control-Allow-Headers': 'Content-Type',
'Access-Control-Max-Age': '3600',
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0'
}
page = requests.get(url, headers)
soup = BeautifulSoup(page.content, 'html.parser')
#--------[ Get Metadata ]--------#
meta['name'] = soup.find('span', class_='mw-page-title-main').text
meta['description'] = re.sub('\[.*?\]', '', soup.select('p')[0].getText().strip()).replace('\n',' ')
meta['sources'].append(url)
#--------[ Extract Table ]--------#
table = soup.find('table', class_='wikitable sortable')
# Get Table Headings
for tr in table.find_all('tr'):
row = [ th.text.strip() for th in tr.find_all('th')]
if len(row) > 1:
data.append( row )
# Get Table Data
for tr in table.find_all('tr'):
row = [ td.text.strip() for td in tr.find_all('td')]
if len(row) > 1:
data.append( row )
#--------[ Process Table ]--------
# Delete rows with incorrect number of variables
key = 0
key_len = len(data)
while key < key_len:
if len(data[key]) != len(data[0]):
data.pop(key)
key = key-1
key = key+1
key_len = len(data)
# Delete unwanted table columns
key = 0
key_len = len(data[0])
while key < key_len:
flag = False
if data[0][key].lower().find('rank') >=0: flag = True
if data[0][key].lower().find('change') >=0: flag = True
if data[0][key].lower().find('notes') >=0: flag = True
if data[0][key].lower().find('gap') >=0: flag = True
if data[0][key].lower().find('Δ') >=0: flag = True
if flag:
for i in range(0, len(data)):
data[i].pop(key)
key = key-1
key = key+1
key_len = len(data[0])

12
scraper.py Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/python3
import masterscraper as ms
scrapelist = ms.scrapelist('conf/wikipedia.txt')
for url in scrapelist:
scrape = ms.scrape(url)
scrape.get_meta()
scrape.clean()
scrape.save()