diff --git a/openwebvulndb/common/cve.py b/openwebvulndb/common/cve.py index be2ee29..4c3da74 100644 --- a/openwebvulndb/common/cve.py +++ b/openwebvulndb/common/cve.py @@ -69,7 +69,7 @@ def read_file(self, file_name): async def read_api(self, url): async with self.session.get(url) as response: data = await response.json() - for entry in data: + for entry in data.get('results'): self.read_one(entry) async def read_one_from_api(self, cve_id):