Update README.md for gitlab.
This commit is contained in:
parent
ca5af9414a
commit
12410f4103
@ -36,9 +36,13 @@ The script can be executed (globally) using:
|
|||||||
$ downloadlist.py -f file.txt -d destination -t threads -l lines
|
$ downloadlist.py -f file.txt -d destination -t threads -l lines
|
||||||
|
|
||||||
where:
|
where:
|
||||||
`file.txt` is the file name/path with the list of URLs to be downloaded
|
|
||||||
|
`file.txt` is the file name/path with the list of URLs to be downloaded (line by line)
|
||||||
|
|
||||||
`destination` is the path, to which the files should be downloaded
|
`destination` is the path, to which the files should be downloaded
|
||||||
|
|
||||||
`threads` is the number of processes to be used to download the URLs simultaneously
|
`threads` is the number of processes to be used to download the URLs simultaneously
|
||||||
|
|
||||||
`lines` is the number of lines to read from the files and read simultaneously. 0 leads to reading the whole file.
|
`lines` is the number of lines to read from the files and read simultaneously. 0 leads to reading the whole file.
|
||||||
|
|
||||||
You may use the package in your own scripts by importing it:
|
You may use the package in your own scripts by importing it:
|
||||||
@ -50,8 +54,11 @@ then you can download a list of files using:
|
|||||||
listdownloader.download_files(URLs, destination, num_threads)
|
listdownloader.download_files(URLs, destination, num_threads)
|
||||||
|
|
||||||
where:
|
where:
|
||||||
|
|
||||||
`URLs` is a list of the URLs to be downloaded
|
`URLs` is a list of the URLs to be downloaded
|
||||||
|
|
||||||
`destination` is a string with the path, at which the files have to be saved
|
`destination` is a string with the path, at which the files have to be saved
|
||||||
|
|
||||||
`num_threads` is the number of threads/processes to use for the download.
|
`num_threads` is the number of threads/processes to use for the download.
|
||||||
|
|
||||||
You can also download a single file using the function:
|
You can also download a single file using the function:
|
||||||
|
Loading…
Reference in New Issue
Block a user