How do you download a remote csv file?
How do you import into Prestashop?
Editing csv is very simple.
But there are several ways to do it.
For example, you can create a second csv file and insert only lines according to the conditions.
There are many examples of how to do this on the Internet.