using command line to get the download links