cert-host-scraper 0.7.7__py3-none-any.whl → 0.8.0__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.
Potentially problematic release.
This version of cert-host-scraper might be problematic. Click here for more details.
- cert_host_scraper/cli.py +9 -2
- {cert_host_scraper-0.7.7.dist-info → cert_host_scraper-0.8.0.dist-info}/METADATA +1 -1
- cert_host_scraper-0.8.0.dist-info/RECORD +9 -0
- cert_host_scraper-0.7.7.dist-info/RECORD +0 -9
- {cert_host_scraper-0.7.7.dist-info → cert_host_scraper-0.8.0.dist-info}/LICENSE +0 -0
- {cert_host_scraper-0.7.7.dist-info → cert_host_scraper-0.8.0.dist-info}/WHEEL +0 -0
- {cert_host_scraper-0.7.7.dist-info → cert_host_scraper-0.8.0.dist-info}/entry_points.txt +0 -0
cert_host_scraper/cli.py
CHANGED
|
@@ -4,6 +4,7 @@ import sys
|
|
|
4
4
|
|
|
5
5
|
import click
|
|
6
6
|
from requests import RequestException
|
|
7
|
+
from rich import box
|
|
7
8
|
from rich.console import Console
|
|
8
9
|
from rich.progress import track
|
|
9
10
|
from rich.table import Table
|
|
@@ -87,14 +88,20 @@ def search(search: str, status_code: int, timeout: int, clean: bool, strip: bool
|
|
|
87
88
|
else:
|
|
88
89
|
display = result.scraped
|
|
89
90
|
|
|
90
|
-
table = Table(show_header=True, header_style="bold")
|
|
91
|
+
table = Table(show_header=True, header_style="bold", box=box.MINIMAL)
|
|
91
92
|
table.add_column("URL")
|
|
92
93
|
table.add_column("Status Code")
|
|
93
94
|
for url_result in display:
|
|
94
95
|
display_code = str(url_result.status_code)
|
|
95
96
|
if url_result.status_code == -1:
|
|
96
97
|
display_code = "-"
|
|
97
|
-
|
|
98
|
+
|
|
99
|
+
url = url_result.url
|
|
100
|
+
if url_result.status_code == 200:
|
|
101
|
+
display_code = f"[green]{display_code}[/green]"
|
|
102
|
+
url = f"[green]{url}[/green]"
|
|
103
|
+
|
|
104
|
+
table.add_row(url, display_code)
|
|
98
105
|
|
|
99
106
|
console = Console()
|
|
100
107
|
console.print(table)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cert_host_scraper/__init__.py,sha256=BUkbAFUgGLjxexWjDqSMZA-YAY55fxoD-lym6D6yDHw,142
|
|
2
|
+
cert_host_scraper/cli.py,sha256=ru3qLp98YcTTBkwY-T3E0ayaBmVR_qo7DQONHfCshAg,3271
|
|
3
|
+
cert_host_scraper/scraper.py,sha256=U-9n2WU6d8Q-5wyloEbK9b9AO_EeaTfv0VQo_CXAGYA,1723
|
|
4
|
+
cert_host_scraper/utils.py,sha256=SDtmBCgcuwoX-MlhAQRL5ekSZO3iUSx7lFX0pmfWaVw,337
|
|
5
|
+
cert_host_scraper-0.8.0.dist-info/LICENSE,sha256=x2zGqcA4IWCXX5UKMH144zM_rK2NMXSXHN5Qn8cg6yY,1070
|
|
6
|
+
cert_host_scraper-0.8.0.dist-info/METADATA,sha256=op5vH3-dOA4Z11P4KIksCD2H2auNoSzkJQsFWHIRuYc,1865
|
|
7
|
+
cert_host_scraper-0.8.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
8
|
+
cert_host_scraper-0.8.0.dist-info/entry_points.txt,sha256=GlQNSNbnSjw_MDZrOzhqcATBJ7C4otv7Adrz2yaeK0w,63
|
|
9
|
+
cert_host_scraper-0.8.0.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cert_host_scraper/__init__.py,sha256=BUkbAFUgGLjxexWjDqSMZA-YAY55fxoD-lym6D6yDHw,142
|
|
2
|
-
cert_host_scraper/cli.py,sha256=XnOh2AYQdc2Wjcp4ouIwyT_8jURfAkPmndpZ42Z5dNU,3069
|
|
3
|
-
cert_host_scraper/scraper.py,sha256=U-9n2WU6d8Q-5wyloEbK9b9AO_EeaTfv0VQo_CXAGYA,1723
|
|
4
|
-
cert_host_scraper/utils.py,sha256=SDtmBCgcuwoX-MlhAQRL5ekSZO3iUSx7lFX0pmfWaVw,337
|
|
5
|
-
cert_host_scraper-0.7.7.dist-info/LICENSE,sha256=x2zGqcA4IWCXX5UKMH144zM_rK2NMXSXHN5Qn8cg6yY,1070
|
|
6
|
-
cert_host_scraper-0.7.7.dist-info/METADATA,sha256=akATRv0DDtKriOGlAxvSo6Ab-2EVvG2F9EaJHlXysog,1865
|
|
7
|
-
cert_host_scraper-0.7.7.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
8
|
-
cert_host_scraper-0.7.7.dist-info/entry_points.txt,sha256=GlQNSNbnSjw_MDZrOzhqcATBJ7C4otv7Adrz2yaeK0w,63
|
|
9
|
-
cert_host_scraper-0.7.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|