Device detection library via HTTP_USER_AGENT
uamd is library for detecting device via HTTP_USER_AGENT.
Currently this library can detect the device listed below
The device doesn’t listed above will treat as device.DummyDevice which will treated as device which support cookie and has no carrier (treated like as PC Browser)
Detect device via HTTP Headers and return cidr.Loader instance. When loader is not None, spoof check is executed via loader
Parameters: |
|
---|---|
Returns: | detected device information as uamd.device.Device subclass instance |
Return type: | cidr.device.Device subclass instance |
Check whether the device is spoofed via reported carrier’s CIDR. If the device accessed from out of range, then the device may be spoofed so the method will set dev.spoof = True and return the device.
Parameters: |
|
---|---|
Returns: | modified(or not modified) device |
Return type: | cidr.device.Device subclass instance |