Skip to content

Instantly share code, notes, and snippets.

@fallive
Forked from myfavouritekk/wget_baidu_yun.sh
Created June 27, 2017 17:21
Show Gist options
  • Select an option

  • Save fallive/593f6960f770da3ab678d49d544cc375 to your computer and use it in GitHub Desktop.

Select an option

Save fallive/593f6960f770da3ab678d49d544cc375 to your computer and use it in GitHub Desktop.
Download Baidu Yun file using wget
#!/usr/bin/env bash
# referer url is public share links
# file url can be found via browser downloading
referer_url=$1
file_url=$2
save_name=$3
wget --referer=$referer_url -O $save_name "$file_url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment