Initial commit
This commit is contained in:
commit
440fa2e4d4
|
@ -0,0 +1,6 @@
|
||||||
|
# Ignore files for git commit
|
||||||
|
/data/*
|
||||||
|
!/data/.gitkeep
|
||||||
|
|
||||||
|
*.pyc
|
||||||
|
*.json
|
|
@ -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.**
|
|
@ -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).
|
||||||
|
|
|
@ -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
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
|
|
@ -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,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))
|
|
@ -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])
|
|
@ -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()
|
Loading…
Reference in New Issue