FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 11-23-2007, 02:37 PM
Default wget'ing files relative paths?

For what it's worth, I finally figured out my wget problem.*

I used Lynx*to grab the source of 2600's webpage, grep'd out the URLs in the pull down menus, sed'd these URL fragments into real URLs, and then piped these URLs in a file that was wget-friendly so I could get some MP3s.

lynx -source http://www.2600.com/offthehook/archive_ra.html | grep /offthehook | sed 's_">.*__g' | sed 's_ __g' | sed 's_<optionvalue=".._http://www.2600.com_g' | sed 's_<option selected value=".._http://www.2600.com_g' | sed 's_<optionselectedvalue=".._http://www.2600.com_g' | sed 's_ __g' > OTH

wget -r -l1 -t1 -nd -N -A.mp3 -erobots=off -i OTH

CentOS mailing list

Thread Tools

All times are GMT. The time now is 07:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org