diff --git a/dl_images.rb b/dl_images.rb index d596ec7..7f98609 100644 --- a/dl_images.rb +++ b/dl_images.rb @@ -4,7 +4,8 @@ require 'nokogiri' require 'open-uri' puts 'what to crawl' -url = gets.chomp +# url = gets.chomp +url = 'http://boards.4chan.org/d/thread/8571429' url = url.open result = URI.extract(url).select { |a| a[/\.(?:gif|png|jpg|jpeg)\b/] } diff --git a/update_path.sh b/update_path.sh new file mode 100644 index 0000000..087eed5 --- /dev/null +++ b/update_path.sh @@ -0,0 +1,6 @@ +cd ~/.vim/bundle +for i in `ls`; do + cd "$i" + git pull + cd .. +done