clean up code

This commit is contained in:
askiiart 2025-01-04 18:13:48 -06:00
parent d9949f13e4
commit c5d93d626c
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -29,7 +29,6 @@ soup = BeautifulSoup(html, 'html5lib')
# hardcode favicon # hardcode favicon
favicons = soup.find_all('link', rel='icon') favicons = soup.find_all('link', rel='icon')
for favicon in favicons: for favicon in favicons:
if 'icon' in favicon.attrs['rel']:
url = absolute_url(favicon.attrs['href'], domain_thing) url = absolute_url(favicon.attrs['href'], domain_thing)
mime_type = requests.head(url).headers['Content-Type'] mime_type = requests.head(url).headers['Content-Type']