[Tutor] get_browser() in python

Norman Khine norman at khine.net
Wed Oct 20 16:40:11 CEST 2010


thanks

On Wed, Oct 20, 2010 at 4:12 PM, Greg <gregbair at gmail.com> wrote:
> Forgot to send to list.
>
> On Wed, Oct 20, 2010 at 10:12 AM, Greg <gregbair at gmail.com> wrote:
>> On Wed, Oct 20, 2010 at 9:03 AM, Norman Khine <norman at khine.net> wrote:
>>> is there an equivalent module like the php's get_browser()
>>> http://php.net/manual/en/function.get-browser.php function?
>>>
>>> thanks
>>>
>>> --
>>
>> get_browser() simply gets a browser's user agent string then looks it
>> up in a file.  So if you can have your app get the http headers (the
>> User-Agent header), you can do this yourself.
>>
>> --
>> Greg Bair
>> gregbair at gmail.com
>>
>
>
>
> --
> Greg Bair
> gregbair at gmail.com
>



-- 
˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )


More information about the Tutor mailing list