Sunday, May 1, 2011

Browscap For Python

I was looking around, and couldn't find the Python equivalent of browscap (that I've used in PHP to detect what browser a given user-agent string is.

I'm hoping I'm not going to have to write my own.. :P

From stackoverflow
  • I have nothing to say.

    Tetha : +1, especially if the result is the first entry of the search :)
    Ian : Thanks for taking the time to assume I'm an asshole. Why not actually look at that first result? http://code.google.com/p/python-browscap/downloads/list
    David Zaslavsky : You get it through SVN, check the "Source" tab.
    Ian : Yes. and I tried it, and it doesn't work. Can we move on to another suggestion please..?
  • Check this out, it should do what you want: browscap.ini-parser.

    Please note that even though it is on the Django Snippets website it is standalone and you can use it with whatever setup you have.

0 comments:

Post a Comment