python-user-agents icon indicating copy to clipboard operation
python-user-agents copied to clipboard

A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.

Results 50 python-user-agents issues
Sort by recently updated
recently updated
newest added

There are also 2 more models which are shown as tablets. Samsung-SGH-I527, with this user agent Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; SAMSUNG-SGH-I527 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30...

```python In [1]: import user_agents In [2]: agent = "Dalvik/2.1.0 (Linux; U; Android 6.0.1; SM-G920T Build/MMB29K)" In [3]: parsed = user_agents.parse(agent) In [4]: parsed.os Out[4]: OperatingSystem(family='Android', version=(6, 0, 1), version_string='6.0.1')...

In the readme it tells people to install pyyaml and ua-parser alongside this library. ua-parser seems to be included in the setup.py, but pyyaml is not. I'm up to make...

It seems that parse does not detect some touch screen user agents ```python >>> user_agent = u'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; LCJB; rv:11.0) like Gecko' >>> parse(user_agent).is_touch_capable False...

I see e.g. #6 and #7, but e.g.: ``` user_agents.parse("Mozilla/5.0 (Android; Tablet; rv:20.0) Gecko/20.0 Firefox/20.0") ``` is reported as mobile, but is a tablet, as per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox This is with:...

Samsung smart-tv is detected as 'Other'. ``` >>> parse( 'Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1' ).device Device(family='Other', brand=None, model=None) ``` They've provided docs for...

Currently is_pc returns False for ChromeOS (on chromebooks). IMHO it needs to return True as it is actually laptop. Thanks, Gagik.

Test Cases are not getting detected. Output seems as "ran 0 tests in 0.00s".

``` >>> from user_agents import parse >>> ua = parse('Mozilla/5.0 (Linux; Android 4.4.2; SM-N9005 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile MQQBrowser/6.2 TBS/036215 Safari/537.36 MicroMessenger/6.3.16.49_r03ae324.780 NetType/WIFI Language/zh_CN') >>> ua.is_mobile...

Wondered if different pages can be rendered depending upon the user agent. So, for example, for user agent of 'IPhone' render iphone users only pages.