# Gemfile
gem "extract_content_images", git: "https://gist.github.com/61b3d029a4f4b74f6244.git", require: "extract_content_images"
require "extract_content_images"
url = 'http://blog.kksg.net/posts/%E5%B0%8F%E7%AC%A0%E5%8E%9F%E8%AB%B8%E5%B3%B6'
html = open(url).read
images = ExtractContentImages.analyse(html, url: url)
p images #=> ["http://farm8.staticflickr.com/7295/10513932323_11d5742d7a.jpg", "http://farm4.staticflickr.com/3713/10513941743_9766db4d99.jpg", "http://farm8.staticflickr.com/7405/10513732496_23fab362b1.jpg", "http://farm6.staticflickr.com/5509/10513709075_b49c961b13.jpg", "http://farm4.staticflickr.com/3703/10513715785_8760383036.jpg", "http://farm4.staticflickr.com/3700/10513754444_3f55c2f376.jpg", "http://farm8.staticflickr.com/7324/10513731094_2bc41d2dff.jpg", "http://farm8.staticflickr.com/7348/10513708725_724c3bc511.jpg", "http://farm4.staticflickr.com/3671/10513759744_a7c80f1fa3.jpg", "http://farm8.staticflickr.com/7421/10513928943_0cdb6ce071.jpg", "http://farm6.staticflickr.com/5490/10513733806_dbb0e7b252.jpg", "http://farm4.staticflickr.com/3701/10513727616_9171f0ee8b.jpg", "http://farm4.staticflickr.com/3693/10513750124_67df4dc7e4.jpg", "http://farm6.staticflickr.com/5547/10513926413_884f412077.jpg", "http://farm4.staticflickr.com/3749/10513725766_43d6507737.jpg"]