Skip to main content

手机归属地查询

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mobile-address-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page