Real-world examples of using Downsrc.
downsrc https://example.com/document.pdfDownloads the PDF and asks where to save it.
downsrc -o https://example.com/image.jpgDownloads the image and opens it immediately.
downsrc -p ./my-files https://example.com/data.zipDownloads directly to the my-files directory.
downsrc https://example.com/page.htmlDownloads the HTML page and all resources (CSS, JS, images).
downsrc -z https://example.com/portfolioDownloads the website and creates a zip archive.
downsrc -hr https://example.com/blogDownloads the website and generates a detailed HTML report.
downsrc -tl 30 https://slow-server.com/large-file.zipCancels download if it takes longer than 30 seconds.
downsrc -ms 50 https://media-site.com/gallerySkips any files larger than 50 MB.
downsrc -mss 100 https://example.com/filesAsks for confirmation before downloading files larger than 100 MB.
downsrc -dr https://example.com/contentDownloads and displays a quality rating of the download.
downsrc -z -hr -dr https://example.com/projectDownloads, zips, generates HTML report, and shows quality report.
downsrc -z -d https://problematic-site.comDownloads with debug logging included in the zip file.
downsrc -as 3 https://example.com/docsDownloads the page and follows up to 3 same-domain links, downloading each with their resources.
downsrc -as 0 https://example.com/pageDownloads only the specified page and its resources (no link following).
downsrc -as https://example.com/wikiFollows all same-domain links. Will prompt for confirmation if more than 10 links found.
downsrc -as 15 -y https://example.com/blogAutomatically follows 15 links without prompting for confirmation.
downsrc -fe "png & jpg & webp" https://example.com/galleryDownloads only image files with specified extensions.
downsrc -fe "pdf & docx & txt" https://example.com/resourcesFilters to download only document files.
downsrc -fe svg https://example.com/iconsDownloads only SVG files from the page.
downsrc -as 5 -fe "png & jpg" https://example.com/photosFollows 5 links and downloads only PNG and JPG images from all pages.
downsrc -as 10 -fe pdf -z -dr -p ./documents https://example.com/papersFollows 10 links, downloads only PDFs, zips results, shows quality report, saves to specific path.
downsrc -fe "mp3 & wav & flac" -z -hr https://example.com/musicDownloads only audio files, creates zip archive, and generates HTML report.
downsrc -c https://example.com/file.zipChecks if the file is accessible without downloading.
downsrc -v https://example.comChecks SSL certificate and security of the website.
Check multiple URLs (using actions):
downsrc action add check-urls "downsrc -c https://site1.com && downsrc -c https://site2.com"
downsrc run check-urlsdownsrc -hh https://example.com/large-siteOpens a browser with live download progress and statistics.
downsrc -y -z https://example.com/filesDownloads and zips without asking for confirmation.
downsrc -y -p ./downloads https://example.com/file.zipDownloads silently to specified directory.
downsrc -z -dr -hr -p ./projects/website https://example.comDownloads website, zips it, shows quality report, generates HTML report, saves to specific path.
downsrc -c https://example.com/file.zip
# If accessible, then:
downsrc -o -p ./downloads https://example.com/file.zipFirst checks accessibility, then downloads and opens if available.
# Download with debug logging
downsrc -debug-on
downsrc -z -d https://example.com/project
downsrc -debug-offEnables debug mode, downloads with debug info, then disables debug mode.
downsrc action add backup-downloads "tar -czf downloads_$(date +%Y%m%d).tar.gz ./downloads"downsrc -p ./downloads https://example.com/file.zip
downsrc run backup-downloadsWhile not directly supported with a single command, you can use actions:
downsrc action add multi-download "downsrc https://site1.com/file1.zip && downsrc https://site2.com/file2.zip"
downsrc run multi-downloadShow the cat symbol for fun:
downsrc catdownsrc detailsShows information about Downsrc and its creator.
downsrc set maxConcurrentDownloads 10
downsrc set defaultZipAfterDownload trueCustomize behavior without command-line flags.