urlicon 0.2.1__tar.gz → 0.2.2__tar.gz
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-0.2.1 → urlicon-0.2.2}/PKG-INFO +2 -2
- {urlicon-0.2.1 → urlicon-0.2.2}/README.md +1 -1
- {urlicon-0.2.1 → urlicon-0.2.2}/pyproject.toml +1 -1
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon/urlicon.py +8 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon.egg-info/PKG-INFO +2 -2
- {urlicon-0.2.1 → urlicon-0.2.2}/setup.cfg +0 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon/urls.py +0 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon.egg-info/SOURCES.txt +0 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon.egg-info/dependency_links.txt +0 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon.egg-info/requires.txt +0 -0
- {urlicon-0.2.1 → urlicon-0.2.2}/src/urlicon.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: urlicon
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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.
|
|
14
|
+
# URLicon - v0.2.2
|
|
15
15
|
|
|
16
16
|
`URLicon` helps you to discover an possible icon from a URL.
|
|
17
17
|
|
|
@@ -53,6 +53,14 @@ def get_meta_icon_from_url(url, url_soup=None):
|
|
|
53
53
|
final_icon = soup_icon
|
|
54
54
|
img = final_icon["href"]
|
|
55
55
|
|
|
56
|
+
try:
|
|
57
|
+
url_request = requests_get(url)
|
|
58
|
+
except:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
if url_request is None:
|
|
62
|
+
img = None
|
|
63
|
+
|
|
56
64
|
img = urls.ensure_relative_path(img, url)
|
|
57
65
|
return img, url_soup
|
|
58
66
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: urlicon
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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.
|
|
14
|
+
# URLicon - v0.2.2
|
|
15
15
|
|
|
16
16
|
`URLicon` helps you to discover an possible icon from a URL.
|
|
17
17
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|