I'm pulling the HTML code contained in a website using the python requests library. Then I need to get some information from these HTML codes. But somehow I didn't get that data. How do I get this data?
HTML
<span data-testid="vuln-cvssv2-additional">
Victim must voluntarily interact with attack mechanism
<br/>
Allows unauthorized disclosure of information
<br/>
Allows unauthorized modification
<br/>
</span>
Python
import requests
import re
link = "https://nvd.nist.gov/vuln/detail/CVE-2017-10119"
f = requests.get(link)
deneme = str(f.text)
re_base_vector = r'\<span data-testid\s*\=\s*\"vuln-cvssv2- additional"\s*\>(.*?(\n))+.*?\n\<\\span\>'
find_base_vector = re.search(re_base_vector, deneme)
print(find_base_vector)
print(find_base_vector.group(0))
The output I want
Victim must voluntarily interact with attack mechanism.
Allows unauthorized disclosure of information.
Allows unauthorized modification