Advertisement
IArepetsky

Phone number information // Python

Jun 25th, 2023
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import colorama
  2. import phonenumbers
  3. from phonenumbers import geocoder, carrier, timezone
  4. from colorama import init
  5. init()
  6. from colorama import Fore, Back, Style
  7.  
  8. #Phone number information 2
  9.  
  10. print(Fore.BLUE + "Phone number information || Creator - IArepetsky")
  11.  
  12. ph = phonenumbers.parse(input(Fore.GREEN + "Enter phone number: "))
  13.  
  14. print(phonenumbers.is_possible_number(ph))
  15.  
  16. print(geocoder.description_for_number(ph, 'en'))
  17. print(geocoder.country_name_for_number(ph, 'en'))
  18.  
  19. print(carrier.name_for_number(ph, lang='en'))
  20.  
  21.  
  22. timeZone = timezone.time_zones_for_number(ph)
  23. print(' ' .join(timeZone))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement