Skip to content

Instantly share code, notes, and snippets.

@usshen
Last active October 3, 2020 05:52
Show Gist options
  • Save usshen/633f262c6d396fa060f41fc5610a9ddd to your computer and use it in GitHub Desktop.
Save usshen/633f262c6d396fa060f41fc5610a9ddd to your computer and use it in GitHub Desktop.
python 3.0 add uri to aria2c to download
import xmlrpc.client
import sys
aria2URL = sys.argv[1]
aria2RPC = xmlrpc.client.ServerProxy("http://localhost:6800/rpc")
aria2Result = aria2RPC.aria2.addUri("token:rpcscrete",[aria2URL])
@usshen
Copy link
Author

usshen commented Oct 3, 2020

python aria2AddUri.py $url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment