Skip to content

Instantly share code, notes, and snippets.

@rleyton
rleyton / parse_ua.py
Created August 8, 2018 09:45
Parse a UA stream and print out the key info
from ua_parser import user_agent_parser
import fileinput
for line in fileinput.input():
parsed=user_agent_parser.ParseUserAgent(line)
print("%s:%s" % (parsed['family'],parsed['major']))
Verifying my Blockstack ID is secured with the address 16eyWSrkmJ8zdr9thuPAu15wzdvHq9Mze2 https://explorer.blockstack.org/address/16eyWSrkmJ8zdr9thuPAu15wzdvHq9Mze2

Keybase proof

I hereby claim:

  • I am rleyton on github.
  • I am rleyton (https://keybase.io/rleyton) on keybase.
  • I have a public key ASC-VpXrIz2ocoWGBnM01Je2vSukbjk8R-FGVJBps0hhcwo

To claim this, I am signing this object: