|
@@ -2,12 +2,12 @@
|
|
.\" Title: aria2c
|
|
.\" Title: aria2c
|
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
|
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|
-.\" Date: 01/17/2010
|
|
|
|
|
|
+.\" Date: 01/18/2010
|
|
.\" Manual: Aria2 Manual
|
|
.\" Manual: Aria2 Manual
|
|
.\" Source: Aria2 1.8.1
|
|
.\" Source: Aria2 1.8.1
|
|
.\" Language: English
|
|
.\" Language: English
|
|
.\"
|
|
.\"
|
|
-.TH "ARIA2C" "1" "01/17/2010" "Aria2 1\&.8\&.1" "Aria2 Manual"
|
|
|
|
|
|
+.TH "ARIA2C" "1" "01/18/2010" "Aria2 1\&.8\&.1" "Aria2 Manual"
|
|
.\" -----------------------------------------------------------------
|
|
.\" -----------------------------------------------------------------
|
|
.\" * Define some portability stuff
|
|
.\" * Define some portability stuff
|
|
.\" -----------------------------------------------------------------
|
|
.\" -----------------------------------------------------------------
|
|
@@ -2543,6 +2543,23 @@ pp result
|
|
.if n \{\
|
|
.if n \{\
|
|
.RE
|
|
.RE
|
|
.\}
|
|
.\}
|
|
|
|
+.sp
|
|
|
|
+If you are a Python lover, you can use xmlrpclib(for Python3\&.x, use xmlrpc\&.client instead) to interact with aria2\&.
|
|
|
|
+.sp
|
|
|
|
+.if n \{\
|
|
|
|
+.RS 4
|
|
|
|
+.\}
|
|
|
|
+.nf
|
|
|
|
+import xmlrpclib
|
|
|
|
+from pprint import pprint
|
|
|
|
+
|
|
|
|
+s = xmlrpclib\&.ServerProxy("http://localhost:6800/rpc")
|
|
|
|
+r = s\&.aria2\&.addUri(["http://localhost/aria2\&.tar\&.bz2"], {"dir":"/downloads"})
|
|
|
|
+pprint(r)
|
|
|
|
+.fi
|
|
|
|
+.if n \{\
|
|
|
|
+.RE
|
|
|
|
+.\}
|
|
.SH "EXAMPLE"
|
|
.SH "EXAMPLE"
|
|
.SS "HTTP/FTP Segmented Download"
|
|
.SS "HTTP/FTP Segmented Download"
|
|
.sp
|
|
.sp
|