Skip to content

User agent parser written in Ruby using regex patterns from the Open Podcast Analytics Working Group.

License

Notifications You must be signed in to change notification settings

dan/podcast_agent_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Podcast Agent Parser

The Podcast Agent Parser is a user agent parser written in Ruby, using regex patterns from the Open Podcast Analytics Working Group.

Installation:

gem 'podcast_agent_parser', '~> 0.1.9'

Then, look up your user agents like so:

agent_text = "iTunes/12.9.5 (Macintosh; OS X 10.14.5) AppleWebKit/607.2.6.1.1"

agent_parser = PodcastAgentParser::Parser.new()

parsed = agent_parser.parse(agent_text)

parsed.app # iTunes
parsed.os # macOS
parsed.device # PC
parsed.bot # false

About

User agent parser written in Ruby using regex patterns from the Open Podcast Analytics Working Group.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages