Forums

Scheduled task returning no output

Running a scheduled task of /home/laussin/mysite/data/; Scraper_redfin.py but i received 2023-05-30 20:08:07 -- Completed task, took 2.93 seconds, return code was 0 with no output. don't know what is going wrong

Is your code supporse to log anything? If there's no logging you would not see anything in the task's log apart from what you see now.

no log. it a scarper suppose to return me some text data in a Csv file and some images as well.

In that case, your task ran correctly and just did not log anything.

but why the CSV files it returned is empty? the scraper is supposed to scrape data on a website and put them on an excel sheet

I'd recommend adding some print statements to your code to find out what is happening; it sounds like there is some path through it that means that it does nothing, and adding logging will help you work out what that is.