Search code examples
azuremachine-learningftpqliksense

How can I use ftp files as data source for Machine Learnig Azure?


I need to connect Machine Learning studio to data that are available in ftp (credentials): extract data file from ftp for train process + extract data file from ftp for predict process + send file results to ftp.

The only data source for file extraction (no db) I have seen is via local pc.

Thank you for any help.

Mohamed.


Solution

  • You can use urllib do download the file locally with Python, and then load it. Soemthing like this:

    import urllib 
    urllib.urlretrieve('ftp://username:password@server/remote_path_to_file', './local_path_to_file')