# create the address
(15274..15334) .to_a.each do |i|
addresses<<(address1 + i.to_s+ address3)
end
#download the files
addresses.threaded_collect(1)do |a_uri|
open(a_uri) do |a_file|
f_name=File.basename(a_uri)
open(f_name,'wb') do|r_file|
a_file.each_line do |a_line|
r_file.write a_line
end
end
end
end
What is the right syntex for using mp3scrape? I can not load mp3scrape
after I use gem install to install the gem.
Li
···
############################
C:\Users\Alex>irb
irb(main):001:0> require 'mp3scrape'
LoadError: no such file to load -- mp3scrape
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):1
--
Posted via http://www.ruby-forum.com/\.
What is the right syntex for using mp3scrape? I can not load mp3scrape after I use gem install to install the gem.
Li
############################
C:\Users\Alex>irb
irb(main):001:0> require 'mp3scrape'
LoadError: no such file to load -- mp3scrape
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from (irb):1
C:\Users\Alex>irb
irb(main):001:0> require 'mp3scrape'
LoadError: no such file to load -- mp3scrape
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):1
irb(main):002:0>
C:\Users\Alex>irb
irb(main):001:0> require 'mp3scrape'
LoadError: no such file to load -- mp3scrape
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):1
irb(main):002:0>