[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] mp3scrape

ara.t.howard

8/1/2008 4:11:00 AM


NAME
mp3scrape

SYNOPSIS
mp3scrape uri [options]+

DESCRIPTION
mp3scrape will scour any url for it's mp3 content - the script
mirrors,
never downloading the same file twice. it does not, however, crawl a
website for links, it simple scapes all the songs from a single page.

PARAMETERS
uri (1 -> uri(uri))
the uri to scrape
--pattern=pattern, -p (0 ~> pattern=['"](http://[^\s]+[^/\s]+.mp3)
["'])
specifiy the mp3 pattern
--basedir=basedir, -b (0 ~> basedir=/Users/ahoward/mp3)
specifiy the base download dir - default(/Users/ahoward/mp3)
--destination=destination, -d (0 ~> destination)
specifiy the absolute download dir -
default(/Users/ahoward/mp3/auto-based-on-uri)
--list
only list the mp3s that would be scraped
--threads=threads, -t (0 ~> integer(threads=8))
specify the number of threads to download with in parallel -
default(8)
--noop, -n
show the downloads that would be performed
--help, -h

INSTALL
sudo gem install mp3scrape

URI
http://codefor...

EXAMPLES
1) get a bunch of xmas tunes
mp3scrape http://fuelfriends.blogspot.com/2007/12/christmas-m...

2) get a bunch of tunes
mp2scrape http://troubledsoulsunite.blo...




a @ http://codefor.../
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




4 Answers

Michael Fellinger

8/4/2008 1:18:00 AM

0

On Fri, Aug 1, 2008 at 1:10 PM, ara howard <ara.t.howard@gmail.com> wrote:
>
> NAME
> mp3scrape
>
> SYNOPSIS
> mp3scrape uri [options]+
>
> DESCRIPTION
> mp3scrape will scour any url for it's mp3 content - the script mirrors,
> never downloading the same file twice. it does not, however, crawl a
> website for links, it simple scapes all the songs from a single page.
>
> PARAMETERS
> uri (1 -> uri(uri))
> the uri to scrape
> --pattern=pattern, -p (0 ~> pattern=['"](http://[^\s]+[^/\s]+.mp3)["'])
> specifiy the mp3 pattern
> --basedir=basedir, -b (0 ~> basedir=/Users/ahoward/mp3)
> specifiy the base download dir - default(/Users/ahoward/mp3)
> --destination=destination, -d (0 ~> destination)
> specifiy the absolute download dir -
> default(/Users/ahoward/mp3/auto-based-on-uri)
> --list
> only list the mp3s that would be scraped
> --threads=threads, -t (0 ~> integer(threads=8))
> specify the number of threads to download with in parallel -
> default(8)
> --noop, -n
> show the downloads that would be performed
> --help, -h
>
> INSTALL
> sudo gem install mp3scrape
>
> URI
> http://codefor...
>
> EXAMPLES
> 1) get a bunch of xmas tunes
> mp3scrape http://fuelfriends.blogspot.com/2007/12/christmas-m...
>
> 2) get a bunch of tunes
> mp2scrape http://troubledsoulsunite.blo...

Nice, i've been doing similar stuff with a script of mine:
http://p.ramaz...

That i would use like:
curl -s http://fuelfriends.blogspot.com/2007/12/christmas-m...
| uris | egrep '\.mp3$' | xargs wget

But thanks, I'll check this one out :)
^ manveru

ara.t.howard

8/4/2008 4:32:00 PM

0


On Aug 3, 2008, at 7:18 PM, Michael Fellinger wrote:

>
> Nice, i've been doing similar stuff with a script of mine:
> http://p.ramaz...
>
> That i would use like:
> curl -s http://fuelfriends.blogspot.com/2007/12/christmas-m...
> | uris | egrep '\.mp3$' | xargs wget
>
> But thanks, I'll check this one out :)
> ^ manveru


cool. my next plan is to make it crawl - but limiting is a big
issue... rfc ;-)

a @ http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




Joel VanderWerf

8/7/2008 12:09:00 AM

0

ara howard wrote:
> mp3scrape will scour any url for it's mp3 content - the script mirrors,
> never downloading the same file twice. it does not, however, crawl a
> website for links, it simple scapes all the songs from a single page.

Might be nice as a firefox plugin, too.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Michael Fellinger

8/7/2008 12:42:00 PM

0

On Thu, Aug 7, 2008 at 9:08 AM, Joel VanderWerf <vjoel@path.berkeley.edu> wrote:
> ara howard wrote:
>>
>> mp3scrape will scour any url for it's mp3 content - the script mirrors,
>> never downloading the same file twice. it does not, however, crawl a
>> website for links, it simple scapes all the songs from a single page.
>
> Might be nice as a firefox plugin, too.

See http://www.downth...

^ manveru