Skip to content

Instantly share code, notes, and snippets.

@samymassoud
Created February 10, 2016 09:26
Show Gist options
  • Save samymassoud/1a352f2e9dc2ce0c32cc to your computer and use it in GitHub Desktop.
Save samymassoud/1a352f2e9dc2ce0c32cc to your computer and use it in GitHub Desktop.
Get vendor name from mac address using http://macvendors.co API
import pprint
import requests
MAC_URL = 'http://macvendors.co/api/%s'
r = requests.get(MAC_URL % 'BC:92:6B:A0:00:01')
pprint.pprint(r.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment