Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -12,43 +12,80 @@ API_KEY = os.getenv("SERPHOUSE_API_KEY")
|
|
12 |
|
13 |
# 국가별 언어 코드 매핑
|
14 |
COUNTRY_LANGUAGES = {
|
15 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
"Japan": "ja",
|
|
|
17 |
"China": "zh",
|
|
|
|
|
|
|
18 |
"Russia": "ru",
|
19 |
-
"France": "fr",
|
20 |
-
"Germany": "de",
|
21 |
-
"Spain": "es",
|
22 |
"Italy": "it",
|
|
|
23 |
"Netherlands": "nl",
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"Vietnam": "vi",
|
27 |
"Indonesia": "id",
|
28 |
"Malaysia": "ms",
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
|
|
|
|
|
|
34 |
"Poland": "pl",
|
|
|
|
|
|
|
35 |
"Czech Republic": "cs",
|
|
|
36 |
"Hungary": "hu",
|
37 |
-
"
|
38 |
"Romania": "ro",
|
39 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"Croatia": "hr",
|
41 |
-
"Serbia": "sr",
|
42 |
"Slovakia": "sk",
|
43 |
-
"
|
|
|
44 |
"Estonia": "et",
|
45 |
"Latvia": "lv",
|
46 |
-
"Lithuania": "lt"
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
COUNTRY_LOCATIONS = {
|
50 |
"United States": "United States",
|
51 |
"United Kingdom": "United Kingdom",
|
|
|
52 |
"Canada": "Canada",
|
53 |
"Australia": "Australia",
|
54 |
"Germany": "Germany",
|
|
|
12 |
|
13 |
# 국가별 언어 코드 매핑
|
14 |
COUNTRY_LANGUAGES = {
|
15 |
+
"United States": "en",
|
16 |
+
"United Kingdom": "en",
|
17 |
+
"Taiwan": "Taiwan", # 대만 추가
|
18 |
+
"Canada": "en",
|
19 |
+
"Australia": "en",
|
20 |
+
"Germany": "de",
|
21 |
+
"France": "fr",
|
22 |
"Japan": "ja",
|
23 |
+
"South Korea": "ko",
|
24 |
"China": "zh",
|
25 |
+
"India": "hi",
|
26 |
+
"Brazil": "pt",
|
27 |
+
"Mexico": "es",
|
28 |
"Russia": "ru",
|
|
|
|
|
|
|
29 |
"Italy": "it",
|
30 |
+
"Spain": "es",
|
31 |
"Netherlands": "nl",
|
32 |
+
"Singapore": "en",
|
33 |
+
"Hong Kong": "zh-HK",
|
|
|
34 |
"Indonesia": "id",
|
35 |
"Malaysia": "ms",
|
36 |
+
"Philippines": "tl",
|
37 |
+
"Thailand": "th",
|
38 |
+
"Vietnam": "vi",
|
39 |
+
"Belgium": "nl",
|
40 |
+
"Denmark": "da",
|
41 |
+
"Finland": "fi",
|
42 |
+
"Ireland": "en",
|
43 |
+
"Norway": "no",
|
44 |
"Poland": "pl",
|
45 |
+
"Sweden": "sv",
|
46 |
+
"Switzerland": "de",
|
47 |
+
"Austria": "de",
|
48 |
"Czech Republic": "cs",
|
49 |
+
"Greece": "el",
|
50 |
"Hungary": "hu",
|
51 |
+
"Portugal": "pt",
|
52 |
"Romania": "ro",
|
53 |
+
"Turkey": "tr",
|
54 |
+
"Israel": "he",
|
55 |
+
"Saudi Arabia": "ar",
|
56 |
+
"United Arab Emirates": "ar",
|
57 |
+
"South Africa": "en",
|
58 |
+
"Argentina": "es",
|
59 |
+
"Chile": "es",
|
60 |
+
"Colombia": "es",
|
61 |
+
"Peru": "es",
|
62 |
+
"Venezuela": "es",
|
63 |
+
"New Zealand": "en",
|
64 |
+
"Bangladesh": "bn",
|
65 |
+
"Pakistan": "ur",
|
66 |
+
"Egypt": "ar",
|
67 |
+
"Morocco": "ar",
|
68 |
+
"Nigeria": "en",
|
69 |
+
"Kenya": "sw",
|
70 |
+
"Ukraine": "uk",
|
71 |
"Croatia": "hr",
|
|
|
72 |
"Slovakia": "sk",
|
73 |
+
"Bulgaria": "bg",
|
74 |
+
"Serbia": "sr",
|
75 |
"Estonia": "et",
|
76 |
"Latvia": "lv",
|
77 |
+
"Lithuania": "lt",
|
78 |
+
"Slovenia": "sl",
|
79 |
+
"Luxembourg": "fr",
|
80 |
+
"Malta": "mt",
|
81 |
+
"Cyprus": "el",
|
82 |
+
"Iceland": "is"
|
83 |
}
|
84 |
|
85 |
COUNTRY_LOCATIONS = {
|
86 |
"United States": "United States",
|
87 |
"United Kingdom": "United Kingdom",
|
88 |
+
"Taiwan": "zh-TW", # 대만어(번체 중국어) 추가
|
89 |
"Canada": "Canada",
|
90 |
"Australia": "Australia",
|
91 |
"Germany": "Germany",
|