Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stylesuxx/browserinfo
A lightweight python wrapper for http://www.browser-info.net
https://github.com/stylesuxx/browserinfo
Last synced: about 1 month ago
JSON representation
A lightweight python wrapper for http://www.browser-info.net
- Host: GitHub
- URL: https://github.com/stylesuxx/browserinfo
- Owner: stylesuxx
- Created: 2016-09-17T00:28:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T20:08:52.000Z (about 8 years ago)
- Last Synced: 2024-09-25T09:16:38.623Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Browserinfo
> A lightwight python wrapper for [browser-info.net](http://www.browser-info.net/) to retrieve UA strings
[![Build Status](https://travis-ci.org/stylesuxx/browserinfo.svg?branch=master)](https://travis-ci.org/stylesuxx/browserinfo) [![Downloads](https://img.shields.io/pypi/dm/browserinfo.svg)](https://img.shields.io/pypi/dm/browserinfo.svg) [![Documentation Status](https://readthedocs.org/projects/browserinfo/badge/?version=latest)](http://browserinfo.readthedocs.io/en/latest/?badge=latest)
## What does browserinfo do?
It allows you to retrieve user agent strings, sorted by popularity or most recent.## Usage example
```python
>>> import browserinfo
>>> browserinfo.recent(1)
['Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36\n']
>>> browserinfo.popular(1)
['Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)']
```## Installation
Use pip:pip install -U browserinfo
## Building doc
From the root of the directory run:sphinx-apidoc -o docs/ browserinfo -f && cd docs && make html && cd ..
## Building Dist Package
To build a distributable package run:```
python setup.py sdist
```