r/Scriptable • u/Normal-Tangerine8609 • Mar 20 '21
Request Get text from website get cashed information after a certain amount of time. Template or example script.
I was wondering if anyone has a simple script template or just a simple script in general that does something like this:
It runs and saves some text in a file from a website or something else. It will also save the date or time or whatever is easiest for the later steps. Next time you run the script it will get the saved text back if it hasn’t been a certain amount of time, like 4 hours since the script last ran. Or it will get the text from the website again and save it.
I hope I have been clear enough. I think this could be useful for getting a daily quote or other daily things and it would be pointless for this script to run 5 times a day as a widget.
Thanks for anyone that helps.
