Last active
October 3, 2020 05:52
-
-
Save usshen/633f262c6d396fa060f41fc5610a9ddd to your computer and use it in GitHub Desktop.
python 3.0 add uri to aria2c to download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmlrpc.client | |
import sys | |
aria2URL = sys.argv[1] | |
aria2RPC = xmlrpc.client.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
python aria2AddUri.py $url