Merge pull request #50 from soxoj/favicons

Favicons added to sites list
This commit is contained in:
soxoj
2021-02-07 00:55:00 +03:00
committed by GitHub
3 changed files with 4008 additions and 3903 deletions
+1756 -1660
View File
File diff suppressed because it is too large Load Diff
+2249 -2242
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -121,7 +121,9 @@ Rank data fetched from Alexa by domains.
note = '' note = ''
if site.disabled: if site.disabled:
note = ', search is disabled' note = ', search is disabled'
site_file.write(f'1. [{site}]({url_main})*: top {valid_rank}{tags}*{note}\n')
favicon = f"![](https://www.google.com/s2/favicons?domain={url_main})"
site_file.write(f'1.{favicon} [{site}]({url_main})*: top {valid_rank}{tags}*{note}\n')
db.update_site(site) db.update_site(site)
site_file.write(f'\nAlexa.com rank data fetched at ({datetime.utcnow()} UTC)\n') site_file.write(f'\nAlexa.com rank data fetched at ({datetime.utcnow()} UTC)\n')