Then I solved it.
but I need to understand how to listen to the subfolders because Hazel does not search unless I give him the command.
.it is a matter of obtaining the photos (for the video, another condition must be made) from the iCloud folder of Photo where the photos of the cloud apple are put, copy where you want to like. useful for those who do not pay for the cloud and have only 5GB go around. since iOS blocks other backup apps.