Skip to content

Instantly share code, notes, and snippets.

@usshen
Created October 3, 2020 05:54
Show Gist options
  • Save usshen/7b9653f14890512787b6c5db134ba647 to your computer and use it in GitHub Desktop.
Save usshen/7b9653f14890512787b6c5db134ba647 to your computer and use it in GitHub Desktop.
python 2.0
import xmlrpclib
import sys
aria2URL = sys.argv[1]
aria2RPC = xmlrpclib.ServerProxy("http://localhost:6800/rpc")
aria2Result = aria2RPC.aria2.addUri("token:rpcscrete",[aria2URL])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment