from artifact_report import ArtifactHtmlReport report = ArtifactHtmlReport('My Report') # Add a script file to the report report.add_script('script.js') # Generate the report report.generate_report()
from artifact_report import ArtifactHtmlReport report = ArtifactHtmlReport('My Report') # Add inline JavaScript to the report report.add_script('console.log("This is inline JavaScript");') # Generate the report report.generate_report()In this example, the add_script function is used to add a console.log statement to the HTML report. Overall, the ArtifactHtmlReport package is a useful tool for generating HTML reports for forensic artifacts in Python.