一个通过物理地址查询网卡所属厂商的Python库——mac.py
文章目录
Mac.py
Gtihub 地址: https://github.com/hustcc/mac.py
A python lib to search Manufacturer of mac address. With only one method search.
一个用于利用物理地址查询网卡所属厂商的Python库,只有一个Api方法。
Install
pip install mac.py
Usage
from macpy import Mac
mac = Mac()
mac.search('00016C')
mac.search('00:01:6C:06:A6:29')
mac.search('00-01-6C-06-A6-29')
mac.search('00') # None
mac.search('') # None
Output
search result will be
{
're': 'Brea CA 92821',
'com': 'FOXCONN',
'addr': '105 S Puente St.',
'co': 'US'
}
or None
What's the meaning of result dict key:
com: company namere: company regionaddr: company addressco: company country
Online Search
Welcome to issue or pr.




评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论