mobile-address

手机归属地查询


License
Other
Install
pip install mobile-address==0.0.1

Documentation

手机归属地查询

Installation

  • pip install mobile-address

How-to

# 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]: '山东移动'

History

2016-02-12

  • version 0.0.1
  • 使用淘宝Web API