Answer the question
In order to leave comments, you need to log in
How to organize remote file sharing in Python?
Hello!
There is a file storage at https://111.111.111.111:1234/files/give/ . By clicking on the link https://111.111.111.111:1234/files/give/file1/download I can download file1 as a file.
There is another file storage, at https://222.222.222.222:4321/files/receive/ .
What I want:
Answer the question
In order to leave comments, you need to log in
Generally speaking, file storages have nothing to do with it. There are two lists - sp_fl_1 and sp_fl_2. The fact that these are the file names obtained in your steps 1. and 2. does not matter. We need to find elements in sp_fl_1 that are not in sp_fl_2.
s_diff=set(sp_fl_1)-set(sp_fl_2)
The s_diff variable contains a list of objects that are present in the first list but not in the second.
Well, then "pull" these files from the first "storage file", save them in the second - or whatever you want to do with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question