Hello,
Looks like you cannot do that with shell script. You can use wget and curl with end points to download files from website. But you cannot do a comparison of the latest file. To do a comparison and extract the file, then you need to do a ssh login to server first. Another option is download file from website an d then do a comparison of the timestamp.
Thank You