Using phonenumbers module, one can detect any numbers with the mobile operators from that partiuclar country.
| python based |
Documentation:
https://pypi.org/project/phonenumbers/
Just a basic idea to detect a phone number using geocoder and carrier.
Geocoder helps to locate the country code and Carrier indicates to locate the service providers of that particular country.