This file contains 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()) |
This file contains 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
<html> | |
<head> | |
<title>Macvendors.co JSONP API Example</title> | |
</head> | |
<body> | |
<div style="width:700px;margin:0 auto;"> | |
<h2><a href="https://macvendors.co">Macvendors.co</a> JSONP API Example</h2> |
This file contains 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
#!/python33/python | |
#Python 3 Example of how to use https://macvendors.co to lookup vendor from mac address | |
print ("Content-Type: text/html\n") | |
import urllib.request as urllib2 | |
import json | |
import codecs | |
#API base url,you can also use https if you need | |
url = "http://macvendors.co/api/" |