[dundee] Defcon-16 Media Archives

Nicholas Walker tel0seh at googlemail.com
Wed Mar 11 20:35:56 UTC 2009


It worked for me. Are you doing the quotes correctly? a double quote
surrounded by single quotes?



'     "    '





On Wed, Mar 11, 2009 at 7:51 PM, gordon dunlop
<astrozubenel at googlemail.com>wrote:

>
>
> 2009/3/11 Nicholas Walker <tel0seh at googlemail.com>
>
>> I managed to sort out an automated download. Heres what I did.
>>
>>
>> wget https://www.defcon.org/podcast/defcon-16-video.rss
>>
>> then
>>
>> cat defcon-16-video.rss | grep .m4v > dump.txt
>>
>> then
>>
>> cat dump.txt
>>
>> cat dump.txt | cut -d '"' -f2 > urls.txt
>>
>> I tried this but it did not work. Not that I wanted to download all the
> videos, but I just wanted to see if it worked. I think the problem was
> trying to use the double quotes as the delimiter. So I re-wrote it, a couple
> of extra lines, but it works.
>
> cat dump.txt | cut -d= -f2 > cleanup1.txt
>
> cat cleanup1.txt | cut -d" " -f1 > cleanup2.txt
>
> sed 's/"//g' cleanup2.txt > urls.txt
>
> Now do your shell script
>
> Gordon
>
>
>
>> Then using this shell script:
>>
>>
>>  #!/bin/sh
>>   exec< "urls.txt"
>>    value=0
>>    while read line
>>    do
>>             wget $line
>>    done
>>
>>
>>
>> It downloads each of the video files one by one.
>>
>>
>>
>> Enjoy ^^
>>
>>
>>
>> _______________________________________________
>> dundee GNU/Linux Users Group mailing list
>> dundee at lists.lug.org.uk  http://dundee.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/dundee
>> Chat on IRC, #tlug on dundee.lug.org.uk
>>
>
>
> _______________________________________________
> dundee GNU/Linux Users Group mailing list
> dundee at lists.lug.org.uk  http://dundee.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/dundee
> Chat on IRC, #tlug on dundee.lug.org.uk
>



-- 


Nick Walker
Vice President : The Linux Society
UAD Ethical Hacker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/dundee/attachments/20090311/0295dc3d/attachment-0001.htm 


More information about the dundee mailing list