mobile-phone's model name extractor from user agent
Project description
kpy
Kpy stands for Keitai (Japanese mobile phone) model name extractor on Python.
This module extracts model name of mobile phone/tablet from user agent string.
Currently, This module supports 774 Japanese mobile phones/tablets.
INSTALATION
$ pip install kpy
USAGE
>>> import kpy >>> ua = ('Mozilla/5.0 (Linux; U; Android 4.1.1; ja-jp; HTL21 Build/JRO03C) ' 'AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30') >>> kpy.extract(ua) 'HTL21'
TODO
Supports other countries’ mobilephone
Output model series name of mobilephone
Contributions are welcome.
License
MIT License
CHANGES
0.1 (2014-12-02)
Initial release.
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
kpy-0.1.tar.gz
(2.4 kB
view details)
File details
Details for the file kpy-0.1.tar.gz
.
File metadata
- Download URL: kpy-0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8970334f6f2db23e6983921807754ad4e5f4547587c44bd2efe9199ea0f6a953 |
|
MD5 | 905a72fd1d9036fe9e219a14cbdf0f0c |
|
BLAKE2b-256 | 7895633d3efcddc23d4a1c69900985fe74f388c92c5db92ddf39f5271b3a7a12 |