r o s i 大家懂的,这是一个简单的下载图片的 gem 而已
➜ test gem install 'curb'
➜ test gem install 'nokogiri'
➜ test gem install irosi
Fetching: irosi-0.0.1.gem (100%)
Successfully installed irosi-0.0.1
Parsing documentation for irosi-0.0.1
Installing ri documentation for irosi-0.0.1
Done installing documentation for irosi after 0 seconds
1 gem installed
➜ irosi git:(master) ✗ irosi --help
here is help messages of rosi command line tool.
-n, --alburmnum Name download one alburnm with num
-b, --begin begin the first alburnm num for download
-e, --end end the last alburnm num for download
-f, --file file download one alburnm with num
➜ test irosi -n 100
{:file=>"/home/i5ting/rosi/test", :num=>"100"}
exist path
download alburm number = 100
download_all starting...
Downloading
.........
Rosi.download do
for num in 1..8
tem(num)
end
end
or
Rosi.download do
item(1)
item(2)
item(4)
end
目前还比较简陋