All Projects → lorien → User_agent

lorien / User_agent

Licence: mit
Generator of User-Agent header

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to User agent

Kolpa
A fake data generator written in and for Go
Stars: ✭ 645 (+184.14%)
Mutual labels:  user-agent
Http request randomizer
Proxying Python Requests
Stars: ✭ 110 (-51.54%)
Mutual labels:  user-agent
Device Detector
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
Stars: ✭ 2,106 (+827.75%)
Mutual labels:  user-agent
Bugz
🐛 Composable User Agent Detection using Ramda
Stars: ✭ 15 (-93.39%)
Mutual labels:  user-agent
Useragent.js
A User-agent analyze project.
Stars: ✭ 70 (-69.16%)
Mutual labels:  user-agent
Parser Php
Browser sniffing gone too far — A useragent parser library for PHP
Stars: ✭ 1,626 (+616.3%)
Mutual labels:  user-agent
User agent
HTTP User Agent parser for the Go programming language.
Stars: ✭ 578 (+154.63%)
Mutual labels:  user-agent
Mojo
✨ Mojolicious - Perl real-time web framework
Stars: ✭ 2,298 (+912.33%)
Mutual labels:  user-agent
Crawler Detect
🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent
Stars: ✭ 1,549 (+582.38%)
Mutual labels:  user-agent
React Useragent
Integrate user-agent detection in an idiomatic React way
Stars: ✭ 154 (-32.16%)
Mutual labels:  user-agent
Th3inspector
Th3Inspector 🕵️ Best Tool For Information Gathering 🔎
Stars: ✭ 1,041 (+358.59%)
Mutual labels:  user-agent
React Device Detect
Detect device, and render view according to detected device type.
Stars: ✭ 1,145 (+404.41%)
Mutual labels:  user-agent
Agent orange
Parse and process User Agents like a secret one
Stars: ✭ 127 (-44.05%)
Mutual labels:  user-agent
Browser Detect
Browser Detection for Laravel by hisorange!
Stars: ✭ 657 (+189.43%)
Mutual labels:  user-agent
Browser
Do some browser detection with Ruby. Includes ActionController integration.
Stars: ✭ 2,263 (+896.92%)
Mutual labels:  user-agent
Ua Parser Js
UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.
Stars: ✭ 6,421 (+2728.63%)
Mutual labels:  user-agent
Fetch Plus
🐕 Fetch+ is a convenient Fetch API replacement with first-class middleware support.
Stars: ✭ 116 (-48.9%)
Mutual labels:  user-agent
Random User Agent
😎 Google chrome browser extension
Stars: ✭ 201 (-11.45%)
Mutual labels:  user-agent
Device Detector Js
A precise user agent parser and device detector written in TypeScript
Stars: ✭ 193 (-14.98%)
Mutual labels:  user-agent
Devicedetector.net
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
Stars: ✭ 144 (-36.56%)
Mutual labels:  user-agent

========== user_agent

.. image:: https://travis-ci.org/lorien/user_agent.png?branch=master :target: https://travis-ci.org/lorien/user_agent?branch=master

.. image:: https://ci.appveyor.com/api/projects/status/jbyd2b9dfq99fvs3 :target: https://ci.appveyor.com/project/lorien/user-agent

.. image:: https://readthedocs.org/projects/user_agent/badge/?version=latest :target: http://user-agent.readthedocs.org

What is user_agent module for?

This module is for generating random, valid web user agents:

  • content of "User-Agent" HTTP headers
  • content of window.navigator JavaScript object

Usage Example

.. code:: python

>>> from user_agent import generate_user_agent, generate_navigator
>>> from pprint import pprint
>>> generate_user_agent()
'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.3; Win64; x64)'
>>> generate_user_agent(os=('mac', 'linux'))
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:36.0) Gecko/20100101 Firefox/36.0'
>>> pprint(generate_navigator())
{'app_code_name': 'Mozilla',
 'app_name': 'Netscape',
 'appversion': '5.0',
 'name': 'firefox',
 'os': 'linux',
 'oscpu': 'Linux i686 on x86_64',
 'platform': 'Linux i686 on x86_64',
 'user_agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64; rv:41.0) Gecko/20100101 Firefox/41.0',
 'version': '41.0'}
>>> pprint(generate_navigator_js())
{'appCodeName': 'Mozilla',
 'appName': 'Netscape',
 'appVersion': '38.0',
 'platform': 'MacIntel',
 'userAgent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0'}

Command Line Usage

.. code:: shell

$ ua
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:49.0) Gecko/20100101 Firefox/49.0

$ ua -n chrome -e
{
  "oscpu": "Linux i686 on x86_64", 
  "appName": "Netscape", 
  "appCodeName": "Mozilla", 
  "appVersion": "55.0.2909.25", 
  "platform": "X11; Linux i686 on x86_64", 
  "userAgent": "Mozilla/5.0 (X11; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2909.25 Safari/537.36"
}

Installation

.. code:: shell

$ pip install -U user_agent

Documentation

Documentation is available at http://user-agent.readthedocs.org

Contribution

Use github to submit bug,fix or wish request: https://github.com/lorien/user_agent/issues

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].