I
I
irny2020-07-16 11:02:43
Python
irny, 2020-07-16 11:02:43

How to correctly parse a phone number to predict the region?

5f10086108b0b202240609.jpeg
Hi, I'm developing an application and I needed a chip like in smartphones, when dialing a number, it gives out the region. I tried to parse with pens, but the accuracy is poor and some regions are not parsed correctly, tell me, is there any library in python or a method with which you can parse the number more accurately?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2020-07-16
@irny

https://github.com/daviddrysdale/python-phonenumbers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question