spiderfoot icon indicating copy to clipboard operation
spiderfoot copied to clipboard

Export in HTML format

Open edspiner opened this issue 10 years ago • 5 comments

It would be great if the export support HTML format for a standalone reporting purpose.

edspiner avatar Dec 07 '15 19:12 edspiner

Can I work on this?

Rb64 avatar Sep 27 '21 20:09 Rb64

Sure! It would be great to see some information here about what you have in mind as an approach, and how you intend to implement it before starting.

smicallef avatar Oct 03 '21 20:10 smicallef

Thanks! Most likely will do the following: I will add the option to generate a simple html file to the scansearchresultexportmulti function of sfwebui.py . Given that I have correctly understood how the already existing Excel and CSV export capability work. So just to clarify a request to: ${docroot}/scansearchresultexport?filetype=excel&id= will get handled by the scansearchresultexport function in sfwebui.py and respond with the return value of the function?

Rb64 avatar Oct 12 '21 00:10 Rb64

I think smicallef was asking about the format for the HTML output.

The CSV functionality could be replicated and dumped into a HTML table. That would be quick and easy, but not particularly useful. Arguably less useful than simply dumping the output in CSV format.

bcoles avatar Oct 12 '21 01:10 bcoles

Yes, you are totally right. In my opinion if an export of an individual data 'type' is requested then wrapping the Data in html is sufficient (For example if the user requests an export for all 'Human Names' then only a list of those will be exported just like in the cvs file. But if the user requests an export of the complete summary, then I believe preserving the hierarchy of the data is the only reasonable way of doing it. Also, I personally believe that when data is exported it should be as portable as possible, so separating the data into more than one file is generally rather unpractical. My solution would be to use a combination of <details> and <summary> tags. This gives the user the capability to expand the data instead of having to follow a hyperlink. But I am open to other suggestions.

Rb64 avatar Oct 13 '21 21:10 Rb64