• XSS.stack #1 – первый литературный журнал от юзеров форума

phonenumbers module in python

w999

HDD-drive
Пользователь
Регистрация
04.01.2022
Сообщения
21
Реакции
0
im having difficulties with the phonenumbers module in python. im trying to access the carrier info associated with phone numbers, but when i run the script it wont show. i can get other aspects of the phonenumbers module to work such as geocode to specify the state the area code belongs to but i cant retrieve carrier info. any help is appreciated.

for example:

import phonenumbers
from phonenumbers import geocoder, carrier

pN = phonenumbers.parse("+16153301448")
C = carrier.name_for_number(pN, 'en')
R = geocoder.description_for_number(pN, 'en')
print(C)
print(R)
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх