-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUniversal Script.py
200 lines (181 loc) · 51.2 KB
/
Universal Script.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#Software Developed by the developer to Download Movies released in India from fmovies.ac
import os
import sys
os.environ["LANG"] = "en_US.UTF-8"
from bs4 import BeautifulSoup
import bs4
import re
from operator import itemgetter
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from validate_email import validate_email
import json
from collections import defaultdict
import collections
import validators
from bs4 import BeautifulSoup
from bs4.element import Comment
import urllib
print("\t\t\tUniversal Contacts Extractor\n")
browser = webdriver.Chrome("chromedriver.exe")
contact_json = '[{"locale":"af","country":"Afrikaans","string":"Kontak"},{"locale":"ar","country":"Arabic","string":"اتصل"},{"locale":"az","country":"Azerbaijani","string":"əlaqə"},{"locale":"be","country":"Belarusian","string":"кантакт"},{"locale":"bg","country":"Bulgarian","string":"контакт"},{"locale":"bn","country":"Bengali","string":"যোগাযোগ"},{"locale":"bs","country":"Bosnian","string":"kontakt"},{"locale":"ca","country":"Catalan","string":"contacte"},{"locale":"ceb","country":"Cebuano","string":"kontak"},{"locale":"cs","country":"Czech","string":"Kontakt"},{"locale":"cy","country":"Welsh","string":"cysylltwch â"},{"locale":"da","country":"Danish","string":"kontakt"},{"locale":"de","country":"German","string":"Kontakt"},{"locale":"el","country":"Greek","string":"Επικοινωνία"},{"locale":"en","country":"English","string":"contact"},{"locale":"eo","country":"Esperanto","string":"contact"},{"locale":"es","country":"Spanish","string":"contacto"},{"locale":"et","country":"Estonian","string":"kontakt"},{"locale":"eu","country":"Basque","string":"kontaktua"},{"locale":"fa","country":"Persian","string":"تماس"},{"locale":"fi","country":"Finnish","string":"ottaa yhteyttä"},{"locale":"fr","country":"French","string":"contact"},{"locale":"ga","country":"Irish","string":"déan teagmháil"},{"locale":"gl","country":"Galician","string":"contacto"},{"locale":"gu","country":"Gujarati","string":"સંપર્ક કરો"},{"locale":"ha","country":"Hausa","string":"lamba"},{"locale":"hi","country":"Hindi","string":"संपर्क करें"},{"locale":"hmn","country":"Hmong","string":"contact"},{"locale":"hr","country":"Croatian","string":"kontakt"},{"locale":"ht","country":"Haitian Creole","string":"kontak"},{"locale":"hu","country":"Hungarian","string":"kapcsolatba lépni"},{"locale":"hy","country":"Armenian","string":"Կապ"},{"locale":"id","country":"Indonesian","string":"kontak"},{"locale":"ig","country":"Igbo","string":"kọntaktị"},{"locale":"is","country":"Icelandic","string":"hafðu samband"},{"locale":"it","country":"Italian","string":"contatto"},{"locale":"iw","country":"Hebrew","string":"איש קשר"},{"locale":"ja","country":"Japanese","string":"接触"},{"locale":"jw","country":"Javanese","string":"kontak"},{"locale":"ka","country":"Georgian","string":"კონტაქტი"},{"locale":"kk","country":"Kazakh","string":"байланыс"},{"locale":"km","country":"Khmer","string":"ទំនាក់ទំនង"},{"locale":"kn","country":"Kannada","string":"ಸಂಪರ್ಕ"},{"locale":"ko","country":"Korean","string":"접촉"},{"locale":"la","country":"Latin","string":"contact"},{"locale":"lo","country":"Lao","string":"ຕິດຕໍ່"},{"locale":"lt","country":"Lithuanian","string":"kontaktas"},{"locale":"lv","country":"Latvian","string":"kontakts"},{"locale":"mg","country":"Malagasy","string":"fifandraisana"},{"locale":"mi","country":"Maori","string":"whakapā"},{"locale":"mk","country":"Macedonian","string":"контакт"},{"locale":"ml","country":"Malayalam","string":"ബന്ധപ്പെടുക"},{"locale":"mn","country":"Mongolian","string":"холбоо барих"},{"locale":"mr","country":"Marathi","string":"संपर्क साधा"},{"locale":"ms","country":"Malay","string":"hubungi"},{"locale":"mt","country":"Maltese","string":"kuntatt"},{"locale":"my","country":"Myanmar (Burmese)","string":"ထိတှေ့"},{"locale":"ne","country":"Nepali","string":"सम्पर्क गर्नुहोस्"},{"locale":"nl","country":"Dutch","string":"contact"},{"locale":"no","country":"Norwegian","string":"kontakt"},{"locale":"ny","country":"Chichewa","string":"kukhudzana"},{"locale":"pa","country":"Punjabi","string":"ਸੰਪਰਕ ਕਰੋ"},{"locale":"pl","country":"Polish","string":"kontakt"},{"locale":"pt","country":"Portuguese","string":"contato"},{"locale":"ro","country":"Romanian","string":"contact"},{"locale":"ru","country":"Russian","string":"контакт"},{"locale":"si","country":"Sinhala","string":"අමතන්න"},{"locale":"sk","country":"Slovak","string":"kontakt"},{"locale":"sl","country":"Slovenian","string":"stik"},{"locale":"so","country":"Somali","string":"la xiriir"},{"locale":"sq","country":"Albanian","string":"kontakt"},{"locale":"sr","country":"Serbian","string":"контакт"},{"locale":"st","country":"Sesotho","string":"ikopanya"},{"locale":"su","country":"Sundanese","string":"hubungan"},{"locale":"sv","country":"Swedish","string":"kontakta"},{"locale":"sw","country":"Swahili","string":"wasiliana"},{"locale":"ta","country":"Tamil","string":"தொடர்பு"},{"locale":"te","country":"Telugu","string":"పరిచయం"},{"locale":"tg","country":"Tajik","string":"тамос"},{"locale":"th","country":"Thai","string":"ติดต่อ"},{"locale":"tl","country":"Filipino","string":"makipag-ugnay"},{"locale":"tr","country":"Turkish","string":"temas"},{"locale":"uk","country":"Ukrainian","string":"контакт"},{"locale":"ur","country":"Urdu","string":"رابطہ"},{"locale":"uz","country":"Uzbek","string":"aloqa"},{"locale":"vi","country":"Vietnamese","string":"tiếp xúc"},{"locale":"yi","country":"Yiddish","string":"קאָנטאַקט"},{"locale":"yo","country":"Yoruba","string":"olubasọrọ"},{"locale":"zh","country":"Chinese","string":"联系"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"联系"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"聯繫"},{"locale":"zu","country":"Zulu","string":"oxhumana naye"}]'
address_json = '[{"locale":"af","country":"Afrikaans","string":"adres"},{"locale":"ar","country":"Arabic","string":"عنوان"},{"locale":"az","country":"Azerbaijani","string":"ünvanı"},{"locale":"be","country":"Belarusian","string":"адрас"},{"locale":"bg","country":"Bulgarian","string":"адрес"},{"locale":"bn","country":"Bengali","string":"ঠিকানা"},{"locale":"bs","country":"Bosnian","string":"adresa"},{"locale":"ca","country":"Catalan","string":"adreça"},{"locale":"ceb","country":"Cebuano","string":"adres"},{"locale":"cs","country":"Czech","string":"adresa"},{"locale":"cy","country":"Welsh","string":"cyfeiriad"},{"locale":"da","country":"Danish","string":"adresse"},{"locale":"de","country":"German","string":"Adresse"},{"locale":"el","country":"Greek","string":"διεύθυνση"},{"locale":"en","country":"English","string":"address"},{"locale":"eo","country":"Esperanto","string":"address"},{"locale":"es","country":"Spanish","string":"dirección"},{"locale":"et","country":"Estonian","string":"aadress"},{"locale":"eu","country":"Basque","string":"helbidea"},{"locale":"fa","country":"Persian","string":"نشانی"},{"locale":"fi","country":"Finnish","string":"osoite"},{"locale":"fr","country":"French","string":"adresse"},{"locale":"ga","country":"Irish","string":"seoladh"},{"locale":"gl","country":"Galician","string":"enderezo"},{"locale":"gu","country":"Gujarati","string":"સરનામું"},{"locale":"ha","country":"Hausa","string":"adireshin"},{"locale":"hi","country":"Hindi","string":"पता"},{"locale":"hmn","country":"Hmong","string":"address"},{"locale":"hr","country":"Croatian","string":"adresa"},{"locale":"ht","country":"Haitian Creole","string":"adrès"},{"locale":"hu","country":"Hungarian","string":"cím"},{"locale":"hy","country":"Armenian","string":"հասցեով"},{"locale":"id","country":"Indonesian","string":"alamat"},{"locale":"ig","country":"Igbo","string":"adreesị"},{"locale":"is","country":"Icelandic","string":"heimilisfang"},{"locale":"it","country":"Italian","string":"indirizzo"},{"locale":"iw","country":"Hebrew","string":"כתובת"},{"locale":"ja","country":"Japanese","string":"住所"},{"locale":"jw","country":"Javanese","string":"alamat"},{"locale":"ka","country":"Georgian","string":"მისამართი"},{"locale":"kk","country":"Kazakh","string":"мекен-жайы"},{"locale":"km","country":"Khmer","string":"អាសយដ្ឋាន"},{"locale":"kn","country":"Kannada","string":"ವಿಳಾಸ"},{"locale":"ko","country":"Korean","string":"주소"},{"locale":"la","country":"Latin","string":"address"},{"locale":"lo","country":"Lao","string":"ທີ່ຢູ່"},{"locale":"lt","country":"Lithuanian","string":"adresas"},{"locale":"lv","country":"Latvian","string":"adrese"},{"locale":"mg","country":"Malagasy","string":"adiresy"},{"locale":"mi","country":"Maori","string":"wāhitau"},{"locale":"mk","country":"Macedonian","string":"адреса"},{"locale":"ml","country":"Malayalam","string":"വിലാസം"},{"locale":"mn","country":"Mongolian","string":"хаяг"},{"locale":"mr","country":"Marathi","string":"पत्ता"},{"locale":"ms","country":"Malay","string":"alamat"},{"locale":"mt","country":"Maltese","string":"indirizz"},{"locale":"my","country":"Myanmar (Burmese)","string":"လိပ်စာ"},{"locale":"ne","country":"Nepali","string":"ठेगाना"},{"locale":"nl","country":"Dutch","string":"adres"},{"locale":"no","country":"Norwegian","string":"adresse"},{"locale":"ny","country":"Chichewa","string":"adilesi"},{"locale":"pa","country":"Punjabi","string":"ਪਤਾ"},{"locale":"pl","country":"Polish","string":"adres"},{"locale":"pt","country":"Portuguese","string":"endereço"},{"locale":"ro","country":"Romanian","string":"adresa"},{"locale":"ru","country":"Russian","string":"адрес"},{"locale":"si","country":"Sinhala","string":"ලිපිනය"},{"locale":"sk","country":"Slovak","string":"adresa"},{"locale":"sl","country":"Slovenian","string":"naslov"},{"locale":"so","country":"Somali","string":"cinwaanka"},{"locale":"sq","country":"Albanian","string":"adresë"},{"locale":"sr","country":"Serbian","string":"адреса"},{"locale":"st","country":"Sesotho","string":"aterese"},{"locale":"su","country":"Sundanese","string":"alamat"},{"locale":"sv","country":"Swedish","string":"adress"},{"locale":"sw","country":"Swahili","string":"anwani"},{"locale":"ta","country":"Tamil","string":"முகவரி"},{"locale":"te","country":"Telugu","string":"చిరునామా"},{"locale":"tg","country":"Tajik","string":"суроға"},{"locale":"th","country":"Thai","string":"ที่อยู่"},{"locale":"tl","country":"Filipino","string":"address"},{"locale":"tr","country":"Turkish","string":"adres"},{"locale":"uk","country":"Ukrainian","string":"адреса"},{"locale":"ur","country":"Urdu","string":"پتہ"},{"locale":"uz","country":"Uzbek","string":"manzili"},{"locale":"vi","country":"Vietnamese","string":"địa chỉ nhà"},{"locale":"yi","country":"Yiddish","string":"אַדרעס"},{"locale":"yo","country":"Yoruba","string":"adirẹsi"},{"locale":"zh","country":"Chinese","string":"地址"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"地址"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"地址"},{"locale":"zu","country":"Zulu","string":"ikheli"}]'
tel_json = '[{"locale":"af","country":"Afrikaans","string":"soos"},{"locale":"ar","country":"Arabic","string":"مثل"},{"locale":"az","country":"Azerbaijani","string":"belə"},{"locale":"be","country":"Belarusian","string":"такія"},{"locale":"bg","country":"Bulgarian","string":"такъв"},{"locale":"bn","country":"Bengali","string":"এমন"},{"locale":"bs","country":"Bosnian","string":"takav"},{"locale":"ca","country":"Catalan","string":"tal"},{"locale":"ceb","country":"Cebuano","string":"sa maong"},{"locale":"cs","country":"Czech","string":"takový"},{"locale":"cy","country":"Welsh","string":"o'r fath"},{"locale":"da","country":"Danish","string":"sådan"},{"locale":"de","country":"German","string":"tel"},{"locale":"el","country":"Greek","string":"τέτοιος"},{"locale":"en","country":"English","string":"tel"},{"locale":"eo","country":"Esperanto","string":"tel"},{"locale":"es","country":"Spanish","string":"tal"},{"locale":"et","country":"Estonian","string":"selline"},{"locale":"eu","country":"Basque","string":"besteak beste,"},{"locale":"fa","country":"Persian","string":"چنین"},{"locale":"fi","country":"Finnish","string":"sellainen"},{"locale":"fr","country":"French","string":"tel"},{"locale":"ga","country":"Irish","string":"den sórt sin"},{"locale":"gl","country":"Galician","string":"tal"},{"locale":"gu","country":"Gujarati","string":"આવા"},{"locale":"ha","country":"Hausa","string":"irin wannan"},{"locale":"hi","country":"Hindi","string":"ऐसा"},{"locale":"hmn","country":"Hmong","string":"tel"},{"locale":"hr","country":"Croatian","string":"takav"},{"locale":"ht","country":"Haitian Creole","string":"sa yo"},{"locale":"hu","country":"Hungarian","string":"ilyen"},{"locale":"hy","country":"Armenian","string":"այդպիսի"},{"locale":"id","country":"Indonesian","string":"seperti itu"},{"locale":"ig","country":"Igbo","string":"dị"},{"locale":"is","country":"Icelandic","string":"svo"},{"locale":"it","country":"Italian","string":"tel"},{"locale":"iw","country":"Hebrew","string":"כזה"},{"locale":"ja","country":"Japanese","string":"そのような"},{"locale":"jw","country":"Javanese","string":"kuwi"},{"locale":"ka","country":"Georgian","string":"ასეთი"},{"locale":"kk","country":"Kazakh","string":"сондай"},{"locale":"km","country":"Khmer","string":"ដូច"},{"locale":"kn","country":"Kannada","string":"ಇಂತಹ"},{"locale":"ko","country":"Korean","string":"이러한"},{"locale":"la","country":"Latin","string":"tel"},{"locale":"lo","country":"Lao","string":"ດັ່ງກ່າວ"},{"locale":"lt","country":"Lithuanian","string":"tel"},{"locale":"lv","country":"Latvian","string":"šāds"},{"locale":"mg","country":"Malagasy","string":"toy izany"},{"locale":"mi","country":"Maori","string":"taua"},{"locale":"mk","country":"Macedonian","string":"како"},{"locale":"ml","country":"Malayalam","string":"ഇത്തരം"},{"locale":"mn","country":"Mongolian","string":"ийм"},{"locale":"mr","country":"Marathi","string":"अशा"},{"locale":"ms","country":"Malay","string":"seperti"},{"locale":"mt","country":"Maltese","string":"bħal"},{"locale":"my","country":"Myanmar (Burmese)","string":"ထိုကဲ့သို့သော"},{"locale":"ne","country":"Nepali","string":"यस्तो"},{"locale":"nl","country":"Dutch","string":"zodanig"},{"locale":"no","country":"Norwegian","string":"slik"},{"locale":"ny","country":"Chichewa","string":"ngati"},{"locale":"pa","country":"Punjabi","string":"ਅਜਿਹੇ"},{"locale":"pl","country":"Polish","string":"tel"},{"locale":"pt","country":"Portuguese","string":"tal"},{"locale":"ro","country":"Romanian","string":"astfel de"},{"locale":"ru","country":"Russian","string":"такие"},{"locale":"si","country":"Sinhala","string":"එවැනි"},{"locale":"sk","country":"Slovak","string":"taký"},{"locale":"sl","country":"Slovenian","string":"kot"},{"locale":"so","country":"Somali","string":"sida"},{"locale":"sq","country":"Albanian","string":"i tillë"},{"locale":"sr","country":"Serbian","string":"тако"},{"locale":"st","country":"Sesotho","string":"jwalo"},{"locale":"su","country":"Sundanese","string":"siga"},{"locale":"sv","country":"Swedish","string":"sådan"},{"locale":"sw","country":"Swahili","string":"kama"},{"locale":"ta","country":"Tamil","string":"அத்தகைய"},{"locale":"te","country":"Telugu","string":"ఇటువంటి"},{"locale":"tg","country":"Tajik","string":"чунин"},{"locale":"th","country":"Thai","string":"อย่างเช่น"},{"locale":"tl","country":"Filipino","string":"gayon"},{"locale":"tr","country":"Turkish","string":"tel"},{"locale":"uk","country":"Ukrainian","string":"такі"},{"locale":"ur","country":"Urdu","string":"اس طرح"},{"locale":"uz","country":"Uzbek","string":"bunday"},{"locale":"vi","country":"Vietnamese","string":"tel"},{"locale":"yi","country":"Yiddish","string":"אַזאַ"},{"locale":"yo","country":"Yoruba","string":"iru"},{"locale":"zh","country":"Chinese","string":"这样"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"这样"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"這樣"},{"locale":"zu","country":"Zulu","string":"ezifana"}]'
fax_json = '[{"locale":"af","country":"Afrikaans","string":"faks"},{"locale":"ar","country":"Arabic","string":"الفاكس"},{"locale":"az","country":"Azerbaijani","string":"faks"},{"locale":"be","country":"Belarusian","string":"факс"},{"locale":"bg","country":"Bulgarian","string":"факс"},{"locale":"bn","country":"Bengali","string":"ফ্যাক্স"},{"locale":"bs","country":"Bosnian","string":"fax"},{"locale":"ca","country":"Catalan","string":"fax"},{"locale":"ceb","country":"Cebuano","string":"fax"},{"locale":"cs","country":"Czech","string":"fax"},{"locale":"cy","country":"Welsh","string":"ffacs"},{"locale":"da","country":"Danish","string":"fax"},{"locale":"de","country":"German","string":"fax"},{"locale":"el","country":"Greek","string":"φαξ"},{"locale":"en","country":"English","string":"fax"},{"locale":"eo","country":"Esperanto","string":"fax"},{"locale":"es","country":"Spanish","string":"fax"},{"locale":"et","country":"Estonian","string":"faks"},{"locale":"eu","country":"Basque","string":"fax"},{"locale":"fa","country":"Persian","string":"فکس"},{"locale":"fi","country":"Finnish","string":"faksi"},{"locale":"fr","country":"French","string":"fax"},{"locale":"ga","country":"Irish","string":"facs"},{"locale":"gl","country":"Galician","string":"fax"},{"locale":"gu","country":"Gujarati","string":"ફેક્સ"},{"locale":"ha","country":"Hausa","string":"fax"},{"locale":"hi","country":"Hindi","string":"फैक्स"},{"locale":"hmn","country":"Hmong","string":"fax"},{"locale":"hr","country":"Croatian","string":"faks"},{"locale":"ht","country":"Haitian Creole","string":"faks"},{"locale":"hu","country":"Hungarian","string":"fax"},{"locale":"hy","country":"Armenian","string":"ֆաքս"},{"locale":"id","country":"Indonesian","string":"fax"},{"locale":"ig","country":"Igbo","string":"fax"},{"locale":"is","country":"Icelandic","string":"fax"},{"locale":"it","country":"Italian","string":"fax"},{"locale":"iw","country":"Hebrew","string":"פַקס"},{"locale":"ja","country":"Japanese","string":"ファックス"},{"locale":"jw","country":"Javanese","string":"fax"},{"locale":"ka","country":"Georgian","string":"ფაქსი"},{"locale":"kk","country":"Kazakh","string":"факс"},{"locale":"km","country":"Khmer","string":"ទូរសារ"},{"locale":"kn","country":"Kannada","string":"ಫ್ಯಾಕ್ಸ್"},{"locale":"ko","country":"Korean","string":"팩스"},{"locale":"la","country":"Latin","string":"fax"},{"locale":"lo","country":"Lao","string":"fax"},{"locale":"lt","country":"Lithuanian","string":"faksas"},{"locale":"lv","country":"Latvian","string":"fakss"},{"locale":"mg","country":"Malagasy","string":"Fax"},{"locale":"mi","country":"Maori","string":"waeatuhi"},{"locale":"mk","country":"Macedonian","string":"факс"},{"locale":"ml","country":"Malayalam","string":"ഫാക്സ്"},{"locale":"mn","country":"Mongolian","string":"факс"},{"locale":"mr","country":"Marathi","string":"फॅक्स"},{"locale":"ms","country":"Malay","string":"faks"},{"locale":"mt","country":"Maltese","string":"faks"},{"locale":"my","country":"Myanmar (Burmese)","string":"ဖက်စ်"},{"locale":"ne","country":"Nepali","string":"फैक्स"},{"locale":"nl","country":"Dutch","string":"fax"},{"locale":"no","country":"Norwegian","string":"faks"},{"locale":"ny","country":"Chichewa","string":"fax"},{"locale":"pa","country":"Punjabi","string":"ਫੈਕਸ"},{"locale":"pl","country":"Polish","string":"faks"},{"locale":"pt","country":"Portuguese","string":"fax"},{"locale":"ro","country":"Romanian","string":"fax"},{"locale":"ru","country":"Russian","string":"факс"},{"locale":"si","country":"Sinhala","string":"ෆැක්ස්"},{"locale":"sk","country":"Slovak","string":"fax"},{"locale":"sl","country":"Slovenian","string":"faks"},{"locale":"so","country":"Somali","string":"fax"},{"locale":"sq","country":"Albanian","string":"faks"},{"locale":"sr","country":"Serbian","string":"факс"},{"locale":"st","country":"Sesotho","string":"fax"},{"locale":"su","country":"Sundanese","string":"fax"},{"locale":"sv","country":"Swedish","string":"fax"},{"locale":"sw","country":"Swahili","string":"fax"},{"locale":"ta","country":"Tamil","string":"தொலைநகல்"},{"locale":"te","country":"Telugu","string":"ఫ్యాక్స్"},{"locale":"tg","country":"Tajik","string":"факс"},{"locale":"th","country":"Thai","string":"แฟกซ์"},{"locale":"tl","country":"Filipino","string":"fax"},{"locale":"tr","country":"Turkish","string":"faks"},{"locale":"uk","country":"Ukrainian","string":"факс"},{"locale":"ur","country":"Urdu","string":"فیکس"},{"locale":"uz","country":"Uzbek","string":"faks"},{"locale":"vi","country":"Vietnamese","string":"fax"},{"locale":"yi","country":"Yiddish","string":"פאַקס"},{"locale":"yo","country":"Yoruba","string":"fax"},{"locale":"zh","country":"Chinese","string":"传真"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"传真"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"傳真"},{"locale":"zu","country":"Zulu","string":"ifeksi"}]'
mail_json = '[{"locale":"af","country":"Afrikaans","string":"pos"},{"locale":"ar","country":"Arabic","string":"بريد"},{"locale":"az","country":"Azerbaijani","string":"poçt"},{"locale":"be","country":"Belarusian","string":"пошта"},{"locale":"bg","country":"Bulgarian","string":"поща"},{"locale":"bn","country":"Bengali","string":"মেইল"},{"locale":"bs","country":"Bosnian","string":"mail"},{"locale":"ca","country":"Catalan","string":"mail"},{"locale":"ceb","country":"Cebuano","string":"mail"},{"locale":"cs","country":"Czech","string":"pošta"},{"locale":"cy","country":"Welsh","string":"bost"},{"locale":"da","country":"Danish","string":"mail"},{"locale":"de","country":"German","string":"mail"},{"locale":"el","country":"Greek","string":"ταχυδρομείο"},{"locale":"en","country":"English","string":"mail"},{"locale":"eo","country":"Esperanto","string":"mail"},{"locale":"es","country":"Spanish","string":"correo"},{"locale":"et","country":"Estonian","string":"posti teel"},{"locale":"eu","country":"Basque","string":"mail"},{"locale":"fa","country":"Persian","string":"پست الکترونیکی"},{"locale":"fi","country":"Finnish","string":"posti"},{"locale":"fr","country":"French","string":"mail"},{"locale":"ga","country":"Irish","string":"phost"},{"locale":"gl","country":"Galician","string":"mail"},{"locale":"gu","country":"Gujarati","string":"મેલ"},{"locale":"ha","country":"Hausa","string":"mail"},{"locale":"hi","country":"Hindi","string":"मेल"},{"locale":"hmn","country":"Hmong","string":"mail"},{"locale":"hr","country":"Croatian","string":"pošta"},{"locale":"ht","country":"Haitian Creole","string":"lapòs"},{"locale":"hu","country":"Hungarian","string":"levél"},{"locale":"hy","country":"Armenian","string":"փոստով"},{"locale":"id","country":"Indonesian","string":"surat"},{"locale":"ig","country":"Igbo","string":"mail"},{"locale":"is","country":"Icelandic","string":"póstur"},{"locale":"it","country":"Italian","string":"mail"},{"locale":"iw","country":"Hebrew","string":"דוֹאַר"},{"locale":"ja","country":"Japanese","string":"郵便物"},{"locale":"jw","country":"Javanese","string":"mail"},{"locale":"ka","country":"Georgian","string":"ფოსტა"},{"locale":"kk","country":"Kazakh","string":"пошта"},{"locale":"km","country":"Khmer","string":"mail"},{"locale":"kn","country":"Kannada","string":"ಮೇಲ್"},{"locale":"ko","country":"Korean","string":"우편"},{"locale":"la","country":"Latin","string":"mail"},{"locale":"lo","country":"Lao","string":"mail"},{"locale":"lt","country":"Lithuanian","string":"Paštas"},{"locale":"lv","country":"Latvian","string":"pastu"},{"locale":"mg","country":"Malagasy","string":"namany Sary"},{"locale":"mi","country":"Maori","string":"mēra"},{"locale":"mk","country":"Macedonian","string":"mail"},{"locale":"ml","country":"Malayalam","string":"മെയിൽ"},{"locale":"mn","country":"Mongolian","string":"мэйл"},{"locale":"mr","country":"Marathi","string":"मेल"},{"locale":"ms","country":"Malay","string":"mel"},{"locale":"mt","country":"Maltese","string":"posta elettronika"},{"locale":"my","country":"Myanmar (Burmese)","string":"စာပို့"},{"locale":"ne","country":"Nepali","string":"मेल"},{"locale":"nl","country":"Dutch","string":"mail"},{"locale":"no","country":"Norwegian","string":"post"},{"locale":"ny","country":"Chichewa","string":"imelo"},{"locale":"pa","country":"Punjabi","string":"ਮੇਲ"},{"locale":"pl","country":"Polish","string":"Poczta"},{"locale":"pt","country":"Portuguese","string":"mail"},{"locale":"ro","country":"Romanian","string":"Poștă"},{"locale":"ru","country":"Russian","string":"почта"},{"locale":"si","country":"Sinhala","string":"තැපැල"},{"locale":"sk","country":"Slovak","string":"pošta"},{"locale":"sl","country":"Slovenian","string":"pošta"},{"locale":"so","country":"Somali","string":"boostada"},{"locale":"sq","country":"Albanian","string":"postë"},{"locale":"sr","country":"Serbian","string":"Пошта"},{"locale":"st","country":"Sesotho","string":"mail"},{"locale":"su","country":"Sundanese","string":"pos"},{"locale":"sv","country":"Swedish","string":"post"},{"locale":"sw","country":"Swahili","string":"barua"},{"locale":"ta","country":"Tamil","string":"மெயில்"},{"locale":"te","country":"Telugu","string":"మెయిల్"},{"locale":"tg","country":"Tajik","string":"почта"},{"locale":"th","country":"Thai","string":"อีเมล"},{"locale":"tl","country":"Filipino","string":"mail"},{"locale":"tr","country":"Turkish","string":"posta"},{"locale":"uk","country":"Ukrainian","string":"пошта"},{"locale":"ur","country":"Urdu","string":"میل"},{"locale":"uz","country":"Uzbek","string":"pochta orqali yuborishingiz mumkin"},{"locale":"vi","country":"Vietnamese","string":"thư"},{"locale":"yi","country":"Yiddish","string":"mail"},{"locale":"yo","country":"Yoruba","string":"mail"},{"locale":"zh","country":"Chinese","string":"邮件"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"邮件"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"郵件"},{"locale":"zu","country":"Zulu","string":"imeyili"}]'
email_json = '[{"locale":"af","country":"Afrikaans","string":"e-pos"},{"locale":"ar","country":"rabic","string":"البريد الإلكتروني"},{"locale":"az","country":"Azerbaijani","string":"e-poçt"},{"locale":"be","country":"Belarusian","string":"па электроннай пошце"},{"locale":"bg","country":"Bulgarian","string":"електронна поща"},{"locale":"bn","country":"Bengali","string":"ই-মেইল"},{"locale":"bs","country":"Bosnian","string":"email"},{"locale":"ca","country":"Catalan","string":"correu electrònic"},{"locale":"ceb","country":"Cebuano","string":"email"},{"locale":"cs","country":"Czech","string":"e-mailem"},{"locale":"cy","country":"Welsh","string":"e-bost"},{"locale":"da","country":"Danish","string":"e-mail"},{"locale":"de","country":"German","string":"Email"},{"locale":"el","country":"Greek","string":"ΗΛΕΚΤΡΟΝΙΚΗ ΔΙΕΥΘΥΝΣΗ"},{"locale":"en","country":"English","string":"email"},{"locale":"eo","country":"Esperanto","string":"email"},{"locale":"es","country":"Spanish","string":"correo electrónico"},{"locale":"et","country":"Estonian","string":"e-post"},{"locale":"eu","country":"Basque","string":"email"},{"locale":"fa","country":"Persian","string":"پست الکترونیک"},{"locale":"fi","country":"Finnish","string":"sähköposti"},{"locale":"fr","country":"French","string":"email"},{"locale":"ga","country":"Irish","string":"ríomhphost"},{"locale":"gl","country":"Galician","string":"correo electrónico"},{"locale":"gu","country":"Gujarati","string":"ઇમેઇલ"},{"locale":"ha","country":"Hausa","string":"imel"},{"locale":"hi","country":"Hindi","string":"ईमेल"},{"locale":"hmn","country":"Hmong","string":"email"},{"locale":"hr","country":"Croatian","string":"e"},{"locale":"ht","country":"Haitian Creole","string":"imèl"},{"locale":"hu","country":"Hungarian","string":"email"},{"locale":"hy","country":"Armenian","string":"էլ"},{"locale":"id","country":"Indonesian","string":"e-mail"},{"locale":"ig","country":"Igbo","string":"email"},{"locale":"is","country":"Icelandic","string":"tölvupóstur"},{"locale":"it","country":"Italian","string":"e-mail"},{"locale":"iw","country":"Hebrew","string":"אֶלֶקטרוֹנִי"},{"locale":"ja","country":"Japanese","string":"Eメール"},{"locale":"jw","country":"Javanese","string":"email"},{"locale":"ka","country":"Georgian","string":"ელ"},{"locale":"kk","country":"Kazakh","string":"электрондық пошта"},{"locale":"km","country":"Khmer","string":"អ៊ីមែល"},{"locale":"kn","country":"Kannada","string":"ಇಮೇಲ್"},{"locale":"ko","country":"Korean","string":"이메일"},{"locale":"la","country":"Latin","string":"email"},{"locale":"lo","country":"Lao","string":"ອີເມວ"},{"locale":"lt","country":"Lithuanian","string":"elektroniniu paštu"},{"locale":"lv","country":"Latvian","string":"e-pasts"},{"locale":"mg","country":"Malagasy","string":"mailaka"},{"locale":"mi","country":"Maori","string":"email"},{"locale":"mk","country":"Macedonian","string":"е-пошта"},{"locale":"ml","country":"Malayalam","string":"ഇമെയിൽ"},{"locale":"mn","country":"Mongolian","string":"и-мэйл"},{"locale":"mr","country":"Marathi","string":"ईमेल"},{"locale":"ms","country":"Malay","string":"e-mel"},{"locale":"mt","country":"Maltese","string":"email"},{"locale":"my","country":"Myanmar (Burmese)","string":"အီးမေးလ်က"},{"locale":"ne","country":"Nepali","string":"इमेल"},{"locale":"nl","country":"Dutch","string":"e-mail"},{"locale":"no","country":"Norwegian","string":"e-post"},{"locale":"ny","country":"Chichewa","string":"imelo"},{"locale":"pa","country":"Punjabi","string":"ਈ - ਮੇਲ"},{"locale":"pl","country":"Polish","string":"e-mail"},{"locale":"pt","country":"Portuguese","string":"o email"},{"locale":"ro","country":"Romanian","string":"e-mail"},{"locale":"ru","country":"Russian","string":"Эл. адрес"},{"locale":"si","country":"Sinhala","string":"විද්යුත් තැපෑල"},{"locale":"sk","country":"Slovak","string":"e-mail"},{"locale":"sl","country":"Slovenian","string":"E-naslov"},{"locale":"so","country":"Somali","string":"email"},{"locale":"sq","country":"Albanian","string":"email"},{"locale":"sr","country":"Serbian","string":"емаил"},{"locale":"st","country":"Sesotho","string":"imeile"},{"locale":"su","country":"Sundanese","string":"email"},{"locale":"sv","country":"Swedish","string":"e-post"},{"locale":"sw","country":"Swahili","string":"barua pepe"},{"locale":"ta","country":"Tamil","string":"மின்னஞ்சல்"},{"locale":"te","country":"Telugu","string":"ఇమెయిల్"},{"locale":"tg","country":"Tajik","string":"почтаи электронӣ"},{"locale":"th","country":"Thai","string":"อีเมล"},{"locale":"tl","country":"Filipino","string":"email"},{"locale":"tr","country":"Turkish","string":"E-posta"},{"locale":"uk","country":"Ukrainian","string":"електронна пошта"},{"locale":"ur","country":"Urdu","string":"ای میل"},{"locale":"uz","country":"Uzbek","string":"elektron pochta"},{"locale":"vi","country":"Vietnamese","string":"email"},{"locale":"yi","country":"Yiddish","string":"email"},{"locale":"yo","country":"Yoruba","string":"imeeli"},{"locale":"zh","country":"Chinese","string":"电子邮件"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"电子邮件"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"電子郵件"},{"locale":"zu","country":"Zulu","string":"imeyili"}]'
telephone_json = '[{"locale":"af","country":"Afrikaans","string":"foon"},{"locale":"ar","country":"Arabic","string":"هاتف"},{"locale":"az","country":"Azerbaijani","string":"telefonu"},{"locale":"be","country":"Belarusian","string":"тэлефон"},{"locale":"bg","country":"Bulgarian","string":"телефон"},{"locale":"bn","country":"Bengali","string":"ফোন"},{"locale":"bs","country":"Bosnian","string":"telefon"},{"locale":"ca","country":"Catalan","string":"telèfon"},{"locale":"ceb","country":"Cebuano","string":"telepono"},{"locale":"cs","country":"Czech","string":"telefon"},{"locale":"cy","country":"Welsh","string":"ffôn"},{"locale":"da","country":"Danish","string":"telefon"},{"locale":"de","country":"German","string":"Telefon"},{"locale":"el","country":"Greek","string":"τηλέφωνο"},{"locale":"en","country":"English","string":"phone"},{"locale":"eo","country":"Esperanto","string":"phone"},{"locale":"es","country":"Spanish","string":"teléfono"},{"locale":"et","country":"Estonian","string":"telefon"},{"locale":"eu","country":"Basque","string":"mugikorra"},{"locale":"fa","country":"Persian","string":"تلفن"},{"locale":"fi","country":"Finnish","string":"puhelin"},{"locale":"fr","country":"French","string":"téléphone"},{"locale":"ga","country":"Irish","string":"fón"},{"locale":"gl","country":"Galician","string":"teléfono"},{"locale":"gu","country":"Gujarati","string":"ફોન"},{"locale":"ha","country":"Hausa","string":"waya"},{"locale":"hi","country":"Hindi","string":"फ़ोन"},{"locale":"hmn","country":"Hmong","string":"phone"},{"locale":"hr","country":"Croatian","string":"telefon"},{"locale":"ht","country":"Haitian Creole","string":"telefòn"},{"locale":"hu","country":"Hungarian","string":"telefon"},{"locale":"hy","country":"Armenian","string":"հեռախոսով"},{"locale":"id","country":"Indonesian","string":"telepon"},{"locale":"ig","country":"Igbo","string":"ekwentị"},{"locale":"is","country":"Icelandic","string":"sími"},{"locale":"it","country":"Italian","string":"Telefono"},{"locale":"iw","country":"Hebrew","string":"טלפון"},{"locale":"ja","country":"Japanese","string":"電話"},{"locale":"jw","country":"Javanese","string":"telpon"},{"locale":"ka","country":"Georgian","string":"ტელეფონი"},{"locale":"kk","country":"Kazakh","string":"телефон"},{"locale":"km","country":"Khmer","string":"ទូរស័ព្ទ"},{"locale":"kn","country":"Kannada","string":"ದೂರವಾಣಿ"},{"locale":"ko","country":"Korean","string":"전화"},{"locale":"la","country":"Latin","string":"phone"},{"locale":"lo","country":"Lao","string":"ໂທລະສັບ"},{"locale":"lt","country":"Lithuanian","string":"telefonas"},{"locale":"lv","country":"Latvian","string":"tālrunis"},{"locale":"mg","country":"Malagasy","string":"telefaonina"},{"locale":"mi","country":"Maori","string":"waea"},{"locale":"mk","country":"Macedonian","string":"телефон"},{"locale":"ml","country":"Malayalam","string":"ഫോൺ"},{"locale":"mn","country":"Mongolian","string":"утас"},{"locale":"mr","country":"Marathi","string":"फोन"},{"locale":"ms","country":"Malay","string":"telefon"},{"locale":"mt","country":"Maltese","string":"telefon"},{"locale":"my","country":"Myanmar (Burmese)","string":"ဖုန်းကို"},{"locale":"ne","country":"Nepali","string":"फोन"},{"locale":"nl","country":"Dutch","string":"telefoon"},{"locale":"no","country":"Norwegian","string":"telefon"},{"locale":"ny","country":"Chichewa","string":"foni"},{"locale":"pa","country":"Punjabi","string":"ਫੋਨ"},{"locale":"pl","country":"Polish","string":"telefon"},{"locale":"pt","country":"Portuguese","string":"telefone"},{"locale":"ro","country":"Romanian","string":"telefon"},{"locale":"ru","country":"Russian","string":"Телефон"},{"locale":"si","country":"Sinhala","string":"දුරකථන"},{"locale":"sk","country":"Slovak","string":"telefón"},{"locale":"sl","country":"Slovenian","string":"telefon"},{"locale":"so","country":"Somali","string":"telefoonka"},{"locale":"sq","country":"Albanian","string":"telefon"},{"locale":"sr","country":"Serbian","string":"телефон"},{"locale":"st","country":"Sesotho","string":"fono"},{"locale":"su","country":"Sundanese","string":"telepon"},{"locale":"sv","country":"Swedish","string":"telefon"},{"locale":"sw","country":"Swahili","string":"simu"},{"locale":"ta","country":"Tamil","string":"தொலைபேசி"},{"locale":"te","country":"Telugu","string":"ఫోన్"},{"locale":"tg","country":"Tajik","string":"телефон"},{"locale":"th","country":"Thai","string":"โทรศัพท์"},{"locale":"tl","country":"Filipino","string":"telepono"},{"locale":"tr","country":"Turkish","string":"telefon"},{"locale":"uk","country":"Ukrainian","string":"телефон"},{"locale":"ur","country":"Urdu","string":"فون"},{"locale":"uz","country":"Uzbek","string":"telefon"},{"locale":"vi","country":"Vietnamese","string":"điện thoại"},{"locale":"yi","country":"Yiddish","string":"טעלעפאָנירן"},{"locale":"yo","country":"Yoruba","string":"foonu"},{"locale":"zh","country":"Chinese","string":"电话"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"电话"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"電話"},{"locale":"zu","country":"Zulu","string":"ifoni"}]'
contact_us_json = '[{"locale":"af","country":"Afrikaans","string":"Kontak Ons"},{"locale":"ar","country":"Arabic","string":"اتصل بنا"},{"locale":"az","country":"Azerbaijani","string":"Bizimlə əlaqə saxlayın"},{"locale":"be","country":"Belarusian","string":"звяжыцеся з намі"},{"locale":"bg","country":"Bulgarian","string":"свържете се с нас"},{"locale":"bn","country":"Bengali","string":"আমাদের সাথে যোগাযোগ করুন"},{"locale":"bs","country":"Bosnian","string":"Kontaktiraj nas"},{"locale":"ca","country":"Catalan","string":"contacta amb nosaltres"},{"locale":"ceb","country":"Cebuano","string":"kontaka kami"},{"locale":"cs","country":"Czech","string":"kontaktujte nás"},{"locale":"cy","country":"Welsh","string":"cysylltwch â ni"},{"locale":"da","country":"Danish","string":"kontakt os"},{"locale":"de","country":"German","string":"kontaktiere uns"},{"locale":"el","country":"Greek","string":"επικοινωνήστε μαζί μας"},{"locale":"en","country":"English","string":"contact us"},{"locale":"eo","country":"Esperanto","string":"contact us"},{"locale":"es","country":"Spanish","string":"Contáctenos"},{"locale":"et","country":"Estonian","string":"võta meiega ühendust"},{"locale":"eu","country":"Basque","string":"jarri gurekin harremanetan"},{"locale":"fa","country":"Persian","string":"تماس با ما"},{"locale":"fi","country":"Finnish","string":"ota meihin yhteyttä"},{"locale":"fr","country":"French","string":"contact us"},{"locale":"ga","country":"Irish","string":"Glaoigh orainn"},{"locale":"gl","country":"Galician","string":"Contacta connosco"},{"locale":"gu","country":"Gujarati","string":"અમારો સંપર્ક કરો"},{"locale":"ha","country":"Hausa","string":"tuntube mu"},{"locale":"hi","country":"Hindi","string":"हमसे संपर्क करें"},{"locale":"hmn","country":"Hmong","string":"contact us"},{"locale":"hr","country":"Croatian","string":"Kontaktirajte nas"},{"locale":"ht","country":"Haitian Creole","string":"Kontakte nou"},{"locale":"hu","country":"Hungarian","string":"lépjen kapcsolatba velünk"},{"locale":"hy","country":"Armenian","string":"կապվեք մեզ հետ"},{"locale":"id","country":"Indonesian","string":"hubungi kami"},{"locale":"ig","country":"Igbo","string":"kpọtụrụ anyị"},{"locale":"is","country":"Icelandic","string":"Hafðu samband við okkur"},{"locale":"it","country":"Italian","string":"Contattaci"},{"locale":"iw","country":"Hebrew","string":"תיצור איתנו קשר"},{"locale":"ja","country":"Japanese","string":"お問い合わせ"},{"locale":"jw","country":"Javanese","string":"hubungi kita"},{"locale":"ka","country":"Georgian","string":"დაგვიკავშირდით"},{"locale":"kk","country":"Kazakh","string":"бізбен хабарласыңы"},{"locale":"km","country":"Khmer","string":"ទាក់ទងមកពួកយើង"},{"locale":"kn","country":"Kannada","string":"ನಮ್ಮನ್ನು ಸಂಪರ್ಕಿಸಿ"},{"locale":"ko","country":"Korean","string":"문의하기"},{"locale":"la","country":"Latin","string":"contact us"},{"locale":"lo","country":"Lao","string":"ຕິດຕໍ່ພວກເຮົາ"},{"locale":"lt","country":"Lithuanian","string":"Susisiekite su mumis"},{"locale":"lv","country":"Latvian","string":"Sazinies ar mums"},{"locale":"mg","country":"Malagasy","string":"Mifandraisa aminay"},{"locale":"mi","country":"Maori","string":"whakapā mai"},{"locale":"mk","country":"Macedonian","string":"Контактирајте не"},{"locale":"ml","country":"Malayalam","string":"ഞങ്ങളെ സമീപിക്കുക"},{"locale":"mn","country":"Mongolian","string":"бидэнтэй холбоо бариарай"},{"locale":"mr","country":"Marathi","string":"आमच्याशी संपर्क साधा"},{"locale":"ms","country":"Malay","string":"hubungi Kami"},{"locale":"mt","country":"Maltese","string":"Ikkuntatjana"},{"locale":"my","country":"Myanmar (Burmese)","string":"ကြှနျုပျတို့ကိုဆကျသှယျရနျ"},{"locale":"ne","country":"Nepali","string":"हामीलाई सम्पर्क गर्नुहोस"},{"locale":"nl","country":"Dutch","string":"contact us"},{"locale":"no","country":"Norwegian","string":"kontakt oss"},{"locale":"ny","country":"Chichewa","string":"Lumikizanani nafe"},{"locale":"pa","country":"Punjabi","string":"ਸਾਡੇ ਨਾਲ ਸੰਪਰਕ ਕਰੋ"},{"locale":"pl","country":"Polish","string":"Skontaktuj się z nami"},{"locale":"pt","country":"Portuguese","string":"Contate-Nos"},{"locale":"ro","country":"Romanian","string":"contact us"},{"locale":"ru","country":"Russian","string":"свяжитесь с нами"},{"locale":"si","country":"Sinhala","string":"අප අමතන්න"},{"locale":"sk","country":"Slovak","string":"kontaktuj nás"},{"locale":"sl","country":"Slovenian","string":"kontaktiraj nas"},{"locale":"so","country":"Somali","string":"nala soo xiriir"},{"locale":"sq","country":"Albanian","string":"na kontaktoni"},{"locale":"sr","country":"Serbian","string":"Контактирајте нас"},{"locale":"st","country":"Sesotho","string":"iteanye le rona"},{"locale":"su","country":"Sundanese","string":"taros Kami"},{"locale":"sv","country":"Swedish","string":"kontakta oss"},{"locale":"sw","country":"Swahili","string":"Wasiliana nasi"},{"locale":"ta","country":"Tamil","string":"எங்களை தொடர்பு கொள்ள"},{"locale":"te","country":"Telugu","string":"మమ్మల్ని సంప్రదించండి"},{"locale":"tg","country":"Tajik","string":"бо мо тамос гиред"},{"locale":"th","country":"Thai","string":"ติดต่อเรา"},{"locale":"tl","country":"Filipino","string":"Makipag-ugnayan sa amin"},{"locale":"tr","country":"Turkish","string":"bizimle iletişime geçin"},{"locale":"uk","country":"Ukrainian","string":"зв'яжіться з нами"},{"locale":"ur","country":"Urdu","string":"ہم سے رابطہ کریں"},{"locale":"uz","country":"Uzbek","string":"Biz bilan bog'lanish"},{"locale":"vi","country":"Vietnamese","string":"liên hệ chúng tôi"},{"locale":"yi","country":"Yiddish","string":"רוף אונז"},{"locale":"yo","country":"Yoruba","string":"pe wa"},{"locale":"zh","country":"Chinese","string":"联系我们"},{"locale":"zh-CN","country":"Chinese (Simplified)","string":"联系我们"},{"locale":"zh-TW","country":"Chinese (Traditional)","string":"聯繫我們"},{"locale":"zu","country":"Zulu","string":"Xhumana nathi"}]'
hosts = []
contact_lang = []
phone_lang = []
gemail_lang = []
email_lang = []
fax_lang = []
address_lang = []
website_dict = {}
website_dict = defaultdict(list)
with open("providers.csv") as csvfile:
for row in csvfile:
prov = row
hosts.append(prov)
def tag_visible(element):
if element.parent.name in ['style', 'script', 'head', 'title', 'meta', '[document]']:
return False
elif isinstance(element, Comment):
return False
elif re.match(r"[\s\r\n]+",str(element)):
return False
return True
def text_from_html(body):
soup = BeautifulSoup(body, 'html.parser')
texts = soup.findAll(text=True)
visible_texts = filter(tag_visible, texts)
return u" ".join(t.strip() for t in visible_texts)
def decode(inp):
return inp.decode("utf-8")
for i in range(0,91):
fax_lang.append(json.loads(fax_json)[i]["string"])
phone_lang.append(json.loads(tel_json)[i]['string'])
phone_lang.append(json.loads(telephone_json)[i]['string'])
email_lang.append(json.loads(email_json)[i]['string'])
email_lang.append(json.loads(mail_json)[i]['string'])
address_lang.append(json.loads(address_json)[i]['string'])
address_lang.append(json.loads(address_json)[i]['country'])
contact_lang.append(json.loads(contact_json)[i]['string'])
contact_lang.append(json.loads(contact_us_json)[i]['string'])
def val_url(url):
if validators.url(url):
return True
else:
return False
def universal(browser, website_dict, domain):
for n,val in website_dict.items():
for i in range(0,len(val)):
if val[i]!=None or val[i][0]=='/':
valu=domain+val[i]
else:
valu=val[i][0]
if val_url(valu):
browser.get(decode(valu))
soup = BeautifulSoup(browser.page_source,"html5lib")
sub_web = soup.find_all("a")
for web in sub_web:
string = decode(web.get("href"))
if bool(string and string.strip()) == True:
if string==n or string[0]=='/' or any(cont in string for cont in contact_lang):
website_dict[string].append(string)
else:
website_dict[string]=[]
def dict_maker(browser, website, website_dict, domain):
if val_url(website):
browser.get(website)
soup = BeautifulSoup(browser.page_source,"html5lib")
webs = soup.find_all("a")
for web in webs:
string = web.get("href")
if bool(string and string.strip()) == True:
if string[0]=='/' or any(cont in string for cont in contact_lang):
string=domain+string
else:
string=string
website_dict[website].append(string)
def contact_phones(string,phone_lang):
for phn in phone_lang:
if phn in string:
print("\nPhone: ")
print(string[string.index(phn):(string.index(phn)+50)])
def gen_email(string,gemail_lang):
for geml in gemail_lang:
if geml in string:
print("\nCompany Email: ")
print(string[(string.index(geml)-15):string.index(geml)+len(geml)])
#def contact_person_name(string):
# for eml in string for eml in email_lang:
# print(string[string.index(eml):string.index(eml)+100)
def contact_emails(string,hosts):
for eml in hosts:
if eml in string:
print("\nEmail: ")
print(string[(string.index(eml)-15):string.index(eml)+len(geml)])
def contact_faxs(string,fax_lang):
for fax in fax_lang:
if fax in string:
print("\nFax: ")
print(string[string.index(fax):string.index(fax)+15])
def address(string,address_lang):
for add in address_lang:
if add in string:
print("\nAddress: ")
print(string[string.index(add):string.index(add)+100])
def geo_cord(browser,website):
print("\nCoordinates: ")
down_link = []
browser.get(website)
soup = BeautifulSoup(browser.page_source,"lxml")
listset = soup("div","google-maps-link")
for list in listset:
down_link += [a["href"] for a in list.findAll("a",{"href":True})]
for dlink in down_link:
coords = dlink[(dlink.index("maps?ll=")+8):dlink.index("&z=")]
print("\n"+coords+"\n")
def validity(email):
print("\nemail is "+validate_email(email)+"\n")
with open("websites.csv") as csvfile:
for row in csvfile:
website = row
domain = website[(website.index("//")+2):(website[website.index("www."):].index("/")+website.index("www."))]
gemail_lang.append("@"+domain[(domain.index("www.")+4):])
dict_maker(browser, website, website_dict, domain)
universal(browser, website_dict, domain)
for n,val in website_dict.items():
for i in range(0,len(val)):
valu=''
if val[i]!=None:
if val[i][0]=='/':
valu=domain+val[i]
else:
if val[i][0]=='#':
valu=domain+"/"+val[i]
else:
valu=val[i]
term=''
if valu[:8]!='https://':
term = 'http://'+valu
else:
if valu[:7]!='http://':
term = 'http://'+valu
else:
term = valu
if val_url(term):
browser.get(term)
string = text_from_html(browser.page_source)
#if any(cont in string for cont in contact_lang):
contact_phones(string,phone_lang)
gen_email(string,gemail_lang)
#contact_person_names(string)
contact_emails(string,hosts)
contact_faxs(string,fax_lang)
address(string,address_lang)
geo_cord(browser,term)