nvdlib icon indicating copy to clipboard operation
nvdlib copied to clipboard

Add a proxy option for api calls

Open tigre-bleu opened this issue 1 year ago • 1 comments

I had a use case where my project needs to use a proxy for API calls outside the internal network.

To cover this, I added an optional option to pass the proxies object across nvdlib calls down to python requests.

Example:

proxies = {'http': 'http://proxy.local:3128', 'https': 'http://proxy.local:3128'}
cves_list = nvdlib.searchCVE(cpeName = my_cpe , proxies=proxies)

tigre-bleu avatar Feb 07 '25 21:02 tigre-bleu

@tigre-bleu you can pass a proxy also without that. Just pass the HTTPS_PROXY environment variable.

cddmp avatar Mar 20 '25 11:03 cddmp