Export Filtered report and send via email using deluge?

Export Filtered report and send via email using deluge?

Hi,

As stated in the title is it possible to export a filtered report say into a spreadsheet and send this via email.

I know this can be done manually from the report but i want this to be an automated thing that happens weekly so i am wondering if this can be done with code?

Kind Regards,

Jake