How to scan through python api

hi, I would like to use the python api to scan an ip of my network, receive the scan results and then print them on the screen …
I installed openvas on kali linux running on virtual box installed on win 10 …
I have performed every step of the installation, plus I have tried to run the example gvm script of this link, where basically I print the version of gvm on the terminal …
I tried some scan scripts but I get all kinds of errors, could you recommend one, among the many scripts on github, or a manual page where it explains how to do what I would like to do?

Hi coch, and welcome to the Greenbone Community Forum.

Is there a reason why you want to avoid using the web interface provided by GSA? There, you could also add an alert that’d send the scan results to a host in your network without any scripting required.

In case you want to do it with scripting regardless, here’s some resources: