How to query the belonging place of mobile phone number in batch?

encountered a problem, there are hundreds of thousands of mobile phone numbers, China Mobile, Telecom, Unicom all have, how to belong to which province and city?
it"s OK to use the crawler https://www.ip.cn/db.php, but it"s slow.
is there any other elegant way?

Jan.08,2022

import phone

if __name__ == '__main__':
    phoneNum = 'XXXXX'
    info = phone.Phone().find(phoneNum)
    print(info)

gitup address: https://github.com/ls0f/phone


the first three digits of the mobile phone number are the next four to seven digits of the operator, so just judge the classification by yourself


use paid data interface, online search, a lot.

agree with @ Shrem of Hula Forest

Menu