pybrowscap

Detects browsers capabilities and features like CSS, Java, JavaScript etc
Download

pybrowscap Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • VladimĂ­r Gorej
  • Publisher web site:
  • http://www.codescale.net/

pybrowscap Tags


pybrowscap Description

Detects browsers capabilities and features like CSS, Java, JavaScript etc pybrowscap is a Python port of PHP function get_browser(). It tells what the user browser is capable of. It detects browsers capabilities and features like css, java, javascript etc. It works on top of browscap data file.InstalationInstall via pipy or copy this module into your project or into your PYTHON_PATH. Download latest version of browscap.csv file from http://browsers.garykeith.com/downloads.asp.Examplefrom pybrowscap.loader.csv import load_filebrowscap = load_file(path_to_browscap_csv)browser = browscap.search(user_agent_string)browser.is_crawler()Automatic updatesfrom pybrowscap.loader import DownloaderDownloader().get(save_to_filepath)TestsTested on evnironment- Ubuntu Linux 10.04- Python 2.6.6- python unitest- browscap.csv from Wed, 22 Jun 2011 23:26:51 -0000Running testsTo run the test run command:python test.py Requirements: · Python · browscap.csv


pybrowscap Related Software