All Projects β†’ igrishaev β†’ user-agent

igrishaev / user-agent

Licence: EPL-1.0 license
User-Agent parser for Clojure

Programming Languages

clojure
4091 projects
Makefile
30231 projects

Projects that are alternatives of or similar to user-agent

react-ua
πŸ“±React User Agent Component, Hook, and HOC. SSR-ready, full UT, using new React Context and Hooks API
Stars: ✭ 18 (-25%)
Mutual labels:  user-agent, user-agent-parser
uainfer
Infer the user agent from its User Agent string
Stars: ✭ 21 (-12.5%)
Mutual labels:  user-agent, user-agent-parser
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 (+26654.17%)
Mutual labels:  user-agent, user-agent-parser
Parser Php
Browser sniffing gone too far β€” A useragent parser library for PHP
Stars: ✭ 1,626 (+6675%)
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 (+500%)
Mutual labels:  user-agent
Ng Device Detector
Angular module to detect OS / Browser / Device
Stars: ✭ 243 (+912.5%)
Mutual labels:  user-agent
browserslist-generator
A library that makes generating and validating Browserslists a breeze!
Stars: ✭ 77 (+220.83%)
Mutual labels:  user-agent
Http request randomizer
Proxying Python Requests
Stars: ✭ 110 (+358.33%)
Mutual labels:  user-agent
crawlerdetect
Golang module to detect bots and crawlers via the user agent
Stars: ✭ 22 (-8.33%)
Mutual labels:  user-agent
Random User Agent
😎 Google chrome browser extension
Stars: ✭ 201 (+737.5%)
Mutual labels:  user-agent
Mojo
✨ Mojolicious - Perl real-time web framework
Stars: ✭ 2,298 (+9475%)
Mutual labels:  user-agent
React Useragent
Integrate user-agent detection in an idiomatic React way
Stars: ✭ 154 (+541.67%)
Mutual labels:  user-agent
List Of User Agents
List of major web + mobile browser user agent strings. +1 Bonus script to scrape :)
Stars: ✭ 247 (+929.17%)
Mutual labels:  user-agent
Agent orange
Parse and process User Agents like a secret one
Stars: ✭ 127 (+429.17%)
Mutual labels:  user-agent
robots-parser
NodeJS robots.txt parser with support for wildcard (*) matching.
Stars: ✭ 117 (+387.5%)
Mutual labels:  user-agent
Fetch Plus
πŸ• Fetch+ is a convenient Fetch API replacement with first-class middleware support.
Stars: ✭ 116 (+383.33%)
Mutual labels:  user-agent
useragent-generator
Easily generate correct user-agent strings for popular browsers
Stars: ✭ 62 (+158.33%)
Mutual labels:  user-agent
Device Detector Js
A precise user agent parser and device detector written in TypeScript
Stars: ✭ 193 (+704.17%)
Mutual labels:  user-agent
Browser
Do some browser detection with Ruby. Includes ActionController integration.
Stars: ✭ 2,263 (+9329.17%)
Mutual labels:  user-agent
User agent
Generator of User-Agent header
Stars: ✭ 227 (+845.83%)
Mutual labels:  user-agent

User-Agent parser for Clojure

A small, single-function library to fetch as much information from a User-Agent HTTP header as possible. Built on top of the proven UA Detector Java package.

Installation

Add it into your dependencies vector:

[user-agent "0.1.0"]

Usage

(ns some.ns
  (:require [user-agent :as ua]))

(def ua-sample
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36")

(ua/parse ua-sample)

{:producer "Google Inc."
 :family :CHROME
 :name "Chrome"
 :type :BROWSER
 :icon "chrome.png"
 :producer-url "http://www.google.com/"
 :url "http://www.google.com/chrome"
 :device {:category :PERSONAL_COMPUTER
          :name "Personal computer"}
 :os
 {:family :OS_X
  :family-name "OS X"
  :name "OS X"
  :producer "Apple Computer, Inc."
  :producer-url "http://www.apple.com/"
  :url "http://en.wikipedia.org/wiki/Mac_OS_X"
  :version
  {:bug-fix "6"
   :extension ""
   :groups ["10" "11" "6"]
   :major "10"
   :minor "11"
   :version "10.11.6"}}
 :type-name "Browser"
 :version
 {:bug-fix "3396"
  :extension ""
  :groups ["67" "0" "3396" "99"]
  :major "67"
  :minor "0"
  :version "67.0.3396.99"}}

License

Copyright Β© 2018 Ivan Grishaev

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

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].