Bulk download using --link #450
-
I have a text file where each line is a reddit id: abcde any way to download all of these straight from the text file, sorta like how youtube-dl works with -a. Also, shoutout to Ali Parlakçı, great work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no option to do this through the BDFR itself, however it's fairly trivial to do with common Linux tools. The If you wanted to download one link per run, the following would do: cat ids.txt | xargs -L 1 python3 -m bdfr download <OPTIONS> --link But it would be more efficient to use multiple links at once. For the that, the following should be sufficient: cat links.txt | while read line; do echo "--link" $line; done | xargs python3 -m bdfr download <OPTIONS> If there are a lot of links, then you may run into the maximum line length for any command, so use the |
Beta Was this translation helpful? Give feedback.
There is no option to do this through the BDFR itself, however it's fairly trivial to do with common Linux tools. The
--link
option can be supplied multiple times.If you wanted to download one link per run, the following would do:
But it would be more efficient to use multiple links at once. For the that, the following should be sufficient:
If there are a lot of links, then you may run into the maximum line length for any command, so use the
-L
option of xargs to limit it to a smaller number of links at a time.