From ac8bccd8f38b0720d4d348eae2dc5c2d2b4d4b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 28 Nov 2024 11:04:23 +0100 Subject: [PATCH 1/2] chg: Teeny-tiny change in the README in order to present the library and make a link to the repository of Vulnerability-Lookup. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20a08a6..c291e88 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# Python client and module for Vulnerability Lookup +# Python client and module for Vulnerability-Lookup + +[PyVulnerabilityLookup](https://github.com/cve-search/PyVulnerabilityLookup), a Python library to access +[Vulnerability-Lookup](https://github.com/cve-search/vulnerability-lookup) via its REST API. + +PyVulnerabilityLookup allows you to fetch vulnerabilities, create comments, bundles, sightings, and more. + ## Installation From 9f012fa85a3205adcabe6fbc27c66126643bdbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 28 Nov 2024 11:29:18 +0100 Subject: [PATCH 2/2] chg: get_vendor_products is finally on /api/browse/vendor in order to stay compatible with cve-search. this was a bad change --- pyvulnerabilitylookup/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvulnerabilitylookup/api.py b/pyvulnerabilitylookup/api.py index 120b16d..79d2fde 100644 --- a/pyvulnerabilitylookup/api.py +++ b/pyvulnerabilitylookup/api.py @@ -133,7 +133,7 @@ class PyVulnerabilityLookup(): :params vendor: A vendor owning products (must be in the known vendor list) ''' - r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'browse', vendor)))) + r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'browse', vendor)))) return r.json() def get_vendor_product_vulnerabilities(self, vendor: str, product: str) -> list[str]: