Bearfinn
Bearfinn

Reputation: 175

How to constantly run Google Colaboratory at a specific time every day?

I recently have built a Python program that runs on Google Colaboratory that retrieves the data from a site. Since I wanted to create a graph based on data of one month, I want to retrieve the data every day. Is there any way to run this on Google Colab, because my friend would like to fix the code at some time too? If not, is there a way to perform this on Windows 10? Thank you in advance.

Upvotes: 6

Views: 13389

Answers (2)

xendi
xendi

Reputation: 2522

This has changed now that I created colabctl.

You can use colabctl to run your Google Colaboratory notebooks from the CLI, on a schedule if you wish. Simply add colabctl.py to a cron job.

Note: If you want to run it on a headless server, you will first need to run it once from your desktop to save your login cookie to the pickle file and then upload that pickle to your server along with colabctl.

Upvotes: 10

Craig Citro
Craig Citro

Reputation: 6625

Colab doesn't support this currently.

For Windows 10, I think you're looking for the Task Scheduler.

Upvotes: 3

Related Questions