urlicon 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
urlicon/urlicon.py CHANGED
@@ -54,9 +54,9 @@ def get_meta_icon_from_url(url, url_soup=None):
54
54
  img = final_icon["href"]
55
55
 
56
56
  try:
57
- url_request = requests_get(url)
57
+ url_request = requests_get(img)
58
58
  except:
59
- return None
59
+ return None, url_soup
60
60
 
61
61
  if url_request is None:
62
62
  img = None
@@ -99,7 +99,7 @@ def get_favicon_from_url(url):
99
99
  except:
100
100
  return None
101
101
 
102
- if favicon_request is None or "html" in favicon_request[:150]:
102
+ if favicon_request is None or "html" in str(favicon_request)[:150]:
103
103
  return None
104
104
  else:
105
105
  return favicon
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urlicon
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: `URLicon` helps you to discover an possible icon from a URL.
5
5
  Author-email: Cesar Cardoso <hello@cesarcardoso.cc>
6
6
  License-Expression: MIT
@@ -11,7 +11,7 @@ Requires-Dist: dotenv>=0.9.9
11
11
  Requires-Dist: requests>=2.32.5
12
12
  Requires-Dist: unforgettable
13
13
 
14
- # URLicon - v0.2.2
14
+ # URLicon - v0.2.3
15
15
 
16
16
  `URLicon` helps you to discover an possible icon from a URL.
17
17
 
@@ -0,0 +1,6 @@
1
+ urlicon/urlicon.py,sha256=68nA8el3HleWsmy_dw6XxRS9HeSvW3fCUk5VAiau7zw,4432
2
+ urlicon/urls.py,sha256=ErdlgRva3bxs6HuBX2iHng21PqpWGIF1etZFToJq4jc,2235
3
+ urlicon-0.2.3.dist-info/METADATA,sha256=Q2eUWkKIKTJJEp-l6Kh19HNlTxBxaULfEVv50e4Ua70,1788
4
+ urlicon-0.2.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
+ urlicon-0.2.3.dist-info/top_level.txt,sha256=Jts8QbeWp-6xANJ9KVj3CHk6L-8D950AQ_ZKXmF4YGI,8
6
+ urlicon-0.2.3.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- urlicon/urlicon.py,sha256=KlLx-1m47AfVv_tBF_6ieHoRxGWCwuMgVkm6mbTVENc,4417
2
- urlicon/urls.py,sha256=ErdlgRva3bxs6HuBX2iHng21PqpWGIF1etZFToJq4jc,2235
3
- urlicon-0.2.2.dist-info/METADATA,sha256=8F5UrKIMx3Zyjrel0-3McnSy0TTye4jZUQbqC1om1E0,1788
4
- urlicon-0.2.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
- urlicon-0.2.2.dist-info/top_level.txt,sha256=Jts8QbeWp-6xANJ9KVj3CHk6L-8D950AQ_ZKXmF4YGI,8
6
- urlicon-0.2.2.dist-info/RECORD,,