View Source mix generate_agent (UserAgent.Generator v1.0.1)

The generate_agent mix task: mix help generate_agent

Convert

  • priv/allagents.xml
  • priv/mostcommonuseragents.txt

Into Elixir and save to lib/user_agent/data.ex

The priv/allagents.xml is downloaded from http://www.user-agents.org/allagents.xml

The priv/mostcommonuseragents.txt is get from https://techblog.willshouse.com/2012/01/03/most-common-user-agents/

Link to this section Summary

Functions

Callback implementation for Mix.Task.run/1.

Link to this section Functions

Callback implementation for Mix.Task.run/1.