get_cve method - multiple CVEs
jimthereaper opened this issue · 4 comments
Hi,
was wondering if the get_cve method can be used to extract multiple CVEs in one JSON?
python vfeedcli.py -m get_cve CVE-2013-1347
Hi,
The get_cve and all other methods from the "CE" API are no longer supported.
To extract info, you must use ./pyvfeed.py --info CVE-2013-1347 and to export ./pyvfeed.py --export CVE-2013-1347
https://github.com/vfeedio/pyvfeed/wiki/5)-Command-line-usage
HOWEVER, if you are trying out the vFeed Pro Demo, only 2017 dataset is available
Hi thanks for the reference, what I actually meant was - would it support to extract multiple CVE ids in just one JSON file and not individually ?
Oh i see.
The preferred method is to have 1 json file per CVE.
Actually, you can extend the API to merge different files into 1.
Here is a sample
import json
with open("cve1.json") as fin1:
data1 = json.load(fin1)
with open("cve2.json") as fin2:
data2 = json.load(fin2)
data1.update(data2)
with open("cves.json", "w") as fout:
json.dump(data1, fout)
Yes, the preferred method is much better approach (per JSON per CVE).
Thanks for the module!