简体   繁体   中英

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.

Colab doesn't support this currently.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM