0

I intend to do web-scraping of a particular website to get the data regularly. I want this python program to be run every day a couple of times automatically. Is it possible? If yes, how can I do it? Ubuntu is my OS

jfs
  • 399,953
  • 195
  • 994
  • 1,670
user3415869
  • 93
  • 2
  • 10

1 Answers1

2

You have options that I can think of. You could have your python code do it all like in this answer: https://stackoverflow.com/a/15090893/1165441

Or if you would like to set up a cron job and execute your script that way here are instructions for Ubuntu: https://help.ubuntu.com/community/CronHowto

In my opinion using a cron job is cleaner because of separations of concerns, but the quick and dirty way would work as well.

Community
  • 1
  • 1
edhedges
  • 2,722
  • 2
  • 28
  • 61