1
0
Fork 0

[cve] Reflects site changes

This commit is contained in:
nemunaire 2016-05-30 17:22:44 +02:00
parent abf810209e
commit 91b550754f
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ def get_cve(cve_id):
search_url = BASEURL_NIST + quote(cve_id.upper())
soup = BeautifulSoup(getURLContent(search_url))
vuln = soup.body.find(class_="vulnDetail")
cvss = vuln.find(class_="cvssDetail")
vuln = soup.body.find(class_="vuln-detail")
cvss = vuln.findAll('div')[4]
return [
"Base score: " + cvss.findAll('div')[0].findAll('a')[0].text.strip(),