Skip to content

Instantly share code, notes, and snippets.

@jokester
Created December 12, 2015 03:31
Show Gist options
  • Save jokester/6967ce5c63c73ed939c9 to your computer and use it in GitHub Desktop.
Save jokester/6967ce5c63c73ed939c9 to your computer and use it in GitHub Desktop.
how to extract download link from the download list of dell's crappy support site
#!/bin/bash
set -o pipefail
set -e
# the link to download list can be obtained with "send the list via mail"
# mine was https://www.dell.com/support/home/jp/ja/jpdhs1/Drivers/DownloadListDetails?downloadListId=81a3eea8-706d-4fc4-bb41-a17754e291c5
curl "https://www.dell.com/support/home/jp/ja/jpdhs1/Drivers/DownloadListDetails?downloadListId=81a3eea8-706d-4fc4-bb41-a17754e291c5" \
| egrep --only-match 'http.*?\.exe' -i \
| xargs wget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment