class Scraper def self.scrape_website_poses doc = Nokogiri::HTML(open("https://www.self.com/gallery/de-stressing-yoga-poses-to-help-you-calm-down")) names = doc.css("figcaption h2.gallery-slide-caption__hed span.gallery-slide-caption__hed-text").map do |pose_el| pose_el.text end descriptions = doc.css("figcaption div.gallery-slide-caption__dek-container div.gallery-slide-caption__dek div").map do |caption_el| caption_el.text end names.each_with_index do |name, index| YogaPose.new(name, descriptions[index]) end end end