User Agent Mobile Detect
Project description
uamd (User Agent Mobile Detect) is for detecting japanese mobile phone from HTTP_USER_AGENT and return device information include UID from HTTP Header and spoof check by CIDR of each carrier
Install
sudo pip install uamd
or:
sudo pip install git+git://github.com/lambdalisue/uamd.git#egg=uamd
Required (Automatically installed)
IPy
BeautifulSoup
How to use
>>> META = {
>>> 'HTTP_USER_AGENT': u"J-PHONE/2.0/J-SH02",
>>> 'HTTP_X_JPHONE_UID': u"XXXXXXX",
>>> 'REMOTE_ADDR': u"123.108.237.0", # Valid IP for Softbank (2011/03/22)
>>> }
>>> deice = uamd.detect(META)
>>> device.name
u'J-SH02'
>>> device.type
u'J-Phone'
>>> device.uid
u'XXXXXXX'
>>> device.spoof
False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uamd-0.1rc4.tar.gz
(109.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
uamd-0.1rc4-py2.7.egg
(20.9 kB
view details)
File details
Details for the file uamd-0.1rc4.tar.gz.
File metadata
- Download URL: uamd-0.1rc4.tar.gz
- Upload date:
- Size: 109.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
688d56a09a9882d6cc1f6736360ae47df053fa9e1164cc9b19d082c9b13a5918
|
|
| MD5 |
c6d55e53366837f4ced5121e114a4179
|
|
| BLAKE2b-256 |
bce177d0da188fc78b55b4a334d532958d2f8cf69f9ec311dd4a48b119cd3a4c
|
File details
Details for the file uamd-0.1rc4-py2.7.egg.
File metadata
- Download URL: uamd-0.1rc4-py2.7.egg
- Upload date:
- Size: 20.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e78fe2f853d5c22ed6a02c380aac86abc9b8d5e6f887c8f79517ddaf976311
|
|
| MD5 |
a18e49bcd5c54107ef38454f03070699
|
|
| BLAKE2b-256 |
a2b0037fb616d43f0903463aac8cfe623e24a599164fac30d894f576e55be7b3
|