MAC Address to Vendors

This is a simple python script that utilizes MAC to vendor API from macvendors.com to get the statistics of different devices connected to a network, especially on guest wifi networks.

The mac addresses are copied to a text file. The script reads each line from the text file at a time and submit the API requests to get corresponding vendor name.

The python script uses request library for processing http requests. No registration or API key is required for up to 1,000 requests per day at 1 request per second. In this example I have added 1 second delay in the script after each request. For higher limits, please checkout their various plans.

MAC addresses can be in any of the following formats.

  • 00-11-22-33-44-55
  • 00:11:22:33:44:55
  • 00.11.22.33.44.55
  • 001122334455
  • 0011.2233.4455

File getmac.py

You can execute the script as follows

 

Please follow and like us: