Skip to content

Itsoon/Favicon-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

do not use (it works, but it's slow, not optimized and the code is ugly.)

Favicon extractor

Compatibility :

Parse html :

<link rel="icon" href="path/to/icon.png" />

<link rel="shortcut icon" href="path/to/icon.png" />

<link rel="apple-touch-icon" href="path/to/icon.png" />

<link rel="apple-touch-icon-precomposed" href="path/to/icon.png" />

<link rel="fluid-icon" href="path/to/icon.png" />

<link rel="mask-icon" href="path/to/icon.png" />

<meta name="msapplication-TileImage" content="path/to/icon.png" />

<meta name="msapplication-square70x70logo" content="path/to/icon.png" />

<meta name="msapplication-square150x150logo" content="path/to/icon.png" />

<meta name="msapplication-square310x310logo" content="path/to/icon.png" />

<meta name="msapplication-wide310x150logo" content="path/to/icon.png" />

Url search :

/favicon.ico

Installation

1. Creating the virtual environment

virtualenv .venv

2. Activate the virtual environment created

source .venv/bin/activate

3. Install geckodriver

Arch linux

yay -S geckodriver

4. Set up dependencies

pip install -r requirements.txt

To do

  • why selenium
  • log
  • argparse
  • threading
  • fix check_url

add this to url search :

  • /apple-touch-icon.png

  • /apple-touch-icon-precomposed.png

  • /apple-touch-icon-57x57-precomposed.png

  • /apple-touch-icon-57x57.png

  • /apple-touch-icon-72x72-precomposed.png

  • /apple-touch-icon-72x72.png

  • /apple-touch-icon-114x114-precomposed.png

  • /apple-touch-icon-114x114.png

  • /apple-touch-icon-120x120-precomposed.png

  • /apple-touch-icon-120x120.png

  • /apple-touch-icon-144x144-precomposed.png

  • /apple-touch-icon-144x144.png

  • /apple-touch-icon-152x152-precomposed.png

  • /apple-touch-icon-152x152.png

  • /apple-touch-icon-180x180-precomposed.png

  • /apple-touch-icon-180x180.png

Releases

No releases published

Packages

No packages published

Languages