fixed favicons
BIN
dist/Referrers/images/searchEngines/bing.com.png
vendored
Normal file
After Width: | Height: | Size: 454 B |
BIN
dist/Referrers/images/searchEngines/espanol.yahoo.com.png
vendored
Normal file
After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 466 B |
BIN
dist/Referrers/images/searchEngines/kvasir.no.png
vendored
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 360 B |
BIN
dist/Referrers/images/searchEngines/qc.yahoo.com.png
vendored
Normal file
After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 434 B |
BIN
dist/Referrers/images/searchEngines/yahoo.com.png
vendored
Normal file
After Width: | Height: | Size: 708 B |
|
@ -19,9 +19,9 @@ def download_favicon(homepage_html, url):
|
|||
"""
|
||||
soup = BeautifulSoup(homepage_html, "html.parser")
|
||||
favicon_element = soup.find("link", rel="shortcut icon")
|
||||
if favicon_element and "href" in favicon_element:
|
||||
if favicon_element and favicon_element.has_attr("href"):
|
||||
favicon_path = favicon_element['href']
|
||||
elif soup.find("link", rel="icon") and "href" in soup.find("link", rel="icon"):
|
||||
elif soup.find("link", rel="icon") and soup.find("link", rel="icon").has_attr("href"):
|
||||
# some sites don't use "shortcut icon" for favicon
|
||||
# in this case we take the first other icon and hope it fits
|
||||
favicon_path = soup.find("link", rel="icon")["href"]
|
||||
|
|
BIN
src/Referrers/images/searchEngines/bing.com.ico
Normal file
After Width: | Height: | Size: 440 B |
BIN
src/Referrers/images/searchEngines/espanol.yahoo.com.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
src/Referrers/images/searchEngines/qc.yahoo.com.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 7.2 KiB |
BIN
src/Referrers/images/searchEngines/yahoo.com.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |