I'm working on a scraper for a website which closes its site/its database every night from about eleven in the evening to five in the morning. Since the scraper I'm working on takes about 70hours to complete, and I am in a rush to get it done, I'd have to wake up at 4.30 every morning...... maybe there's a better way..
Using a ruby gem such as 'whenever' you can set the time to start the code, like:
every :day, :at => ['5am'] do
and then the code
However, this doesn't pause the code. How would you make the code pause at 11pm to 5am the next day, continue to 11pm, pause untill 5am the next day, etcetera?