Hi all,
I have the following scenario running:
- Http get a file - gets a csv feed
- Parse CSV
- Translate content via Deepl API
- Google Sheets - add a row - that writes the translated content to a csv file
The problem is, that every run all content in the CSV is being translated. This is of course not necessary for content that hasn’t changed since the previous run.
So, I’m looking for a way to:
- Store the data from the input CSV (Exists of 2 columns. 1. ID, 2. Content)
- Compare this data to the data stored in the previous run
- Filter out only new rows (If ID didn’t exist in previous run) and changed rows (if ID existed, but content changed since previous run)
- Translate the new and changed rows
- Update rows / add rows to the Google sheet
I’ve been puzzling, but can’t get it to work. Any help would be very much appreciated!
Thanks,
Daan