News for hackers. Stuff that matters.
Re:Ask HN: Need a simple HTTP service that allows basic stri... by pwg on Sunday June 06, 2021 @12:44PM (#27414338)
> I am building a simple bot. The bot scrapes an RSS feed. The only persistence I need is the date time of the most recent item on the RSS feed. I dont want to have to spin up a DB.

So, open a local file, overwriting any old contents, and write out the date and time of the most recent item retrieved when done.

Then, before starting the next fetch, open the file and read in the saved date/time to use to determine which new items to fetch.

Re:Ask HN: Need a simple HTTP service that allows basic stri... by roberja90 on Sunday June 06, 2021 @12:49PM (#27414378)
Sorry forgot to mention one other requirement... This script will be running in cloud so cant rely on a simple local file for implementation.