>>221
asin = doc.at('ASIN').inner_text

こんなのだろ
doc.at('ASIN') が nil になる可能性があるから

tag_asin = doc.at('ASIN')
asin = if tag_asin then tag_asin.inner_text else nil end

みたいに場合分けで書かなければいけない
こういうのってなんかイイ書き方ないもんかね