Skip to content

dsfx3d/grabicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Favicon Grabber

grab all favicons attached to a webpage

Installation

pip install grabicon

Usage

from grabicon import FaviconGrabber

Example

# grab favicons using
grabber = FaviconGrabber()
favicons = grabber.grab(url)

# grab more favicons
more_favicons = grabber.grab(other_url)


favicons        # is a list of icons
icon = favicons[0]
type(icon)      # = <class 'grabicon.core.Icon'>


# Icon is an entity class defined in grabicon
icon.url        # favicon url
icon.data       # bytes of image
icon.size       # size of data in bytes
icon.type       # file types [ raster-image, raw-image, vector-image, 3d-image]
icon.extension  # icon file extensions

Releases

No releases published

Packages

No packages published