🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

mobile-address

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobile-address

手机归属地查询

0.0.1
PyPI
Maintainers
1
# Example 1
----------------------------
  In [1]: from mobile_address import MobileAddress 
  In [2]: ma = MobileAddress('15764235174') 
  In [3]: ma.get_full() 
  Out [1]:
  {
  'mts': '1576423',
  'province': '山东',
  'catName': '中国移动',
  'telString': '15764235174',
  'areaVid': '30501',
  'ispVid': '3236139',
  'carrier': '山东移动'
  }

# Example 2
In [1]: from mobile_address import get_address
In [2]: get_address('15764235174')
Out [1]:
{
'mts': '1576423',
'province': '山东',
'catName': '中国移动',
'telString': '15764235174',
'areaVid': '30501',
'ispVid': '3236139',
'carrier': '山东移动'
}

# Example 3
In [1]: from mobile_address import get_province
In [2]: get_province('15764235174')
Out [1]: '山东'

# Example 4
In [1]: from mobile_address import get_carrier
In [2]: get_carrier('15764235174')
Out [1]: '山东移动'

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts