wget or curl and yousendit.com
Mark LaPierre
marklapier at aol.com
Sun Oct 14 00:26:56 UTC 2012
On 10/13/2012 08:12 PM, Ian Malone wrote:
> On 13 October 2012 23:08, JD<jd1008 at gmail.com> wrote:
>>
>
>>>>
>>>> Is there a way to use wget or curl or clive to download files from
>>>> yousendit.com?
>>>> Would appreciate some examples.
>
>> Each file link, when you cright-click it, takes you to the full link of the
>> file,
>> and you can then use that link as an arg to wget.
>>
>>
>>
>>
>
> If feeling brave you could script link extraction from the page and a
> second curl request, alternatively wget's recursive -r option may be
> what you want:
> http://www.linuxforums.org/forum/applications/145133-get-complete-webpage-wget-curl.html
>
Here's a bit of a guide to build your own script.
# GET THE WEB PAGE
wget -q -O "rundown.php?prgId=2"
"http://www.npr.org/templates/rundowns/rundown.php?prgId=2&prgDate=$DATE"
sleep 1
# NOW STRIP OUT THE URLs AND GET THE MP3 FILES
for URL in `grep "http://pd.npr.org/anon.npr-mp3/npr/atc"
"rundown.php?prgId=2" | sort | uniq | awk -F"\"" '{print $4}' | awk
-F"?" '{print $1}'`
do
wget $URL 2> /dev/null &
sleep 1
done
--
_
°v°
/(_)\
^ ^ Mark LaPierre
Registerd Linux user No #267004
https://linuxcounter.net/
****
More information about the users
mailing list