In this example, the tool is configured as follows:
Write Source: (blank)
Command: curl.exe
Command Arguments: http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCOBOULD10&month=6&day=19&year=2005&format=1 -o "%temp%\temp.csv"
Working Directory: (blank)
Read Results: %temp%\temp.csv
Explanation:
- The tool is configured as an input file in the Alteryx workflow. Therefore, Write Source is left blank.
- The Command is curl.exe, which is a free and open source program that allows you to download files from a web page. For more information, see the curl documentation.
- Command Arguments includes the complete path of the file to be downloaded, as well as an output command and the file to output (in this case, -o "%temp%\temp.csv", which means to output (-o) the content from the web page as a file called temp.csv.)
- Working Directory is left blank to default to the directory where the workflow is saved.
- Read Results refers to the temp.csv file to return from
the downloaded content and its relative path (%temp% references
the temporary directory). The curl program has already downloaded
the content and is handling the data as this .csv file. Alteryx is
reading the .csv file as if it came from an Input Data Tool. The file
can now be processed downstream.