cert-host-scraper 0.7.6__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.6.dist-info → cert_host_scraper-0.8.0.dist-info}/METADATA +4 -4
- cert_host_scraper-0.8.0.dist-info/RECORD +9 -0
- {cert_host_scraper-0.7.6.dist-info → cert_host_scraper-0.8.0.dist-info}/WHEEL +1 -1
- cert_host_scraper-0.7.6.dist-info/RECORD +0 -9
- {cert_host_scraper-0.7.6.dist-info → cert_host_scraper-0.8.0.dist-info}/LICENSE +0 -0
- {cert_host_scraper-0.7.6.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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cert-host-scraper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary:
|
|
5
5
|
Home-page: https://github.com/inverse/cert-host-scraper
|
|
6
6
|
License: MIT
|
|
@@ -26,14 +26,14 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
[](LICENSE)
|
|
27
27
|
[](https://github.com/psf/black)
|
|
28
28
|
|
|
29
|
-
Query the certificate transparency log from [crt.sh](https://crt.sh) by a given a keyword and returns the status code of the matched results. Optionally filtering the results by status code.
|
|
29
|
+
Query the certificate transparency log from [crt.sh](https://crt.sh) by a given a keyword and returns the status code of the matched results. Optionally, filtering the results by status code.
|
|
30
30
|
|
|
31
31
|
<img alt="Demo of cert-host-scraper" src="https://i.imgur.com/Co3aTfO.gif" width="800" />
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
cert-host-scraper search your-domain.com [--status-code 200]
|
|
36
|
+
cert-host-scraper search your-domain.com [--status-code 200]
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Installation
|
|
@@ -52,7 +52,7 @@ pip install cert-host-scraper
|
|
|
52
52
|
|
|
53
53
|
## Development
|
|
54
54
|
|
|
55
|
-
Requires [poetry][0] and Python 3.10
|
|
55
|
+
Requires [poetry][0] and Python 3.10+.
|
|
56
56
|
|
|
57
57
|
```
|
|
58
58
|
poetry install
|
|
@@ -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.6.dist-info/LICENSE,sha256=x2zGqcA4IWCXX5UKMH144zM_rK2NMXSXHN5Qn8cg6yY,1070
|
|
6
|
-
cert_host_scraper-0.7.6.dist-info/METADATA,sha256=or22otVb-IEDZowmTY_3uIDsb00dPisZOhicc_PgHIs,1884
|
|
7
|
-
cert_host_scraper-0.7.6.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
|
|
8
|
-
cert_host_scraper-0.7.6.dist-info/entry_points.txt,sha256=GlQNSNbnSjw_MDZrOzhqcATBJ7C4otv7Adrz2yaeK0w,63
|
|
9
|
-
cert_host_scraper-0.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|