Skip to content

Instantly share code, notes, and snippets.

@Sicks3c
Created October 8, 2020 11:10
Show Gist options
  • Select an option

  • Save Sicks3c/156a27bed46ca38eb3925b0ada69a235 to your computer and use it in GitHub Desktop.

Select an option

Save Sicks3c/156a27bed46ca38eb3925b0ada69a235 to your computer and use it in GitHub Desktop.

Revisions

  1. Sicks3c created this gist Oct 8, 2020.
    13 changes: 13 additions & 0 deletions favicon.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/usr/bin/python3
    import mmh3
    import requests
    import codecs
    import sys
    # Uncomment `f` and "file=f" if you want to store the results in a file
    #f = open('rez','w')
    urls = sys.stdin.read().split("\n")
    for x in urls:
    response = requests.get('{}'.format(x), verify=False)
    favicon = codecs.encode(response.content,"base64")
    hash = mmh3.hash(favicon)
    print(hash) #file=f)