scdl-org / scdl

Soundcloud Music Downloader
GNU General Public License v2.0
3.41k stars 339 forks source link

could you add proxy like youtube-dl thanks #272

Open chuyume opened 5 years ago

chuyume commented 5 years ago

coz soundcloud is banned here so i can only access via shadowsocks etc. so i need proxy thanks. Network Options:

--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection --socket-timeout SECONDS Time to wait before giving up, in seconds --source-address IP Client-side IP address to bind to -4, --force-ipv4 Make all connections via IPv4 -6, --force-ipv6 Make all connections via IPv6

r00t- commented 2 years ago

the http library used appears to respect the standard environment variables, so simply:

export https_proxy=http://<your proxy>:<port>/

before running scdl.