Get latest report by ip or hostname

There are different possibilities.
If you e.g. use the xml, you can look up the tags and their text.
I am not sure what information you need.

But you can e.g. do something like this:

>>> z = gmp.get_report(report_id='3404b586-40be-4a7d-a964-c23c435d9abc', details=True)
>>> zz = z.find('report').find('report').find('results')
>>> for result in results:
...     pretty_print(result.find('nvt').find('name'))
...
<name>Adobe Acrobat 2017 Security Updates(apsb18-30)-MAC OS X</name>
>>>
1 Like