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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aaa9-2c246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aaa9-2c246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?