blob: 0bebab6836a453447faf1d2059a11b7dad026769 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" mmh3 favicon hash """
import mmh3
import requests
import codecs
response = requests.get('https://domain.com/favicon.ico')
favicon = codecs.encode(response.content,"base64")
hash = mmh3.hash(favicon)
print(hash)
|