-
Notifications
You must be signed in to change notification settings - Fork 5
/
countries.py
92 lines (82 loc) · 1.88 KB
/
countries.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import shutil
from pathlib import Path
# import wikipedia
import pywikibot
from chat_thief.audioworld.soundeffects_library import SoundeffectsLibrary
all_sfx = SoundeffectsLibrary.fetch_soundeffect_names()
geo_guesser_countries = [
"botswana",
"senegal",
"south africa",
"bangladesh",
"cambodia",
"india",
"indonesia",
"israel",
"japan",
"malaysia",
"mongolia",
"philippines",
"russia",
"singapore",
"taiwan",
"thailand",
"belgium",
"bulgaria",
"croatia",
"denmark",
"estonia",
"finland",
"france",
"germany",
"greece",
"hungary",
"iceland",
"ireland",
"italy",
"latvia",
"lithuania",
"luxembourg",
"netherlands",
"norway",
"poland",
"portugal",
"romania",
"serbia",
"slovakia",
"slovenia",
"spain",
"sweden",
"switzerland",
"turkey",
"ukraine",
"united kingdom",
"canada",
"greenland",
"mexico",
"united states",
"australia",
"new zealand",
"argentina",
"bolivia",
"brazil",
"chile",
"colombia",
"ecuador",
"peru",
"Uruguay",
]
if __name__ == "__main__":
for country in geo_guesser_countries:
site = pywikibot.Site()
page = pywikibot.Page(site, country)
breakpoint()
# existing_sounds = [ country for country in geo_guesser_countries if country in all_sfx ]
# # sounds_folder = Path(__file__).parent.parent.joinpath("geoboard/sounds").resolve()
# sounds_folder = Path("/home/begin/code/geoboard/sounds")
# # sounds_folder = Path(__file__).parent.parent / "geoboard/sounds"
# for sound in existing_sounds:
# soundpath = SoundeffectsLibrary.find_sample(sound)
# dest = sounds_folder.joinpath(soundpath.name)
# print(f"Copying Sound {soundpath.name} to {dest}")
# shutil.copy2(soundpath, dest)