Created
January 25, 2016 12:44
-
-
Save wichert/8b63370e4bdd82af77ea to your computer and use it in GitHub Desktop.
Python example for http://macvendors.co/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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()) | |
{'result': {'address': '1 Infinite Loop Cupertino CA US 95014 ', | |
'company': 'Apple, Inc.', | |
'mac_prefix': 'BC:92:6B'}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment