code: def dump_scraped_objects(task_name)
        counts = Hash.new(0)
        @store.pipelined do
          send(task_name).each do |object|
            counts[object._type] += 1
            dump_scraped_object(object)
          end
        end
        counts
      end
docs: Dumps scraped objects to disk.
  
   @param [Symbol] task_name the name of the scraping task to perform
   @return [Hash] the number of scraped objects by type
   @raises [Pupa::Errors::DuplicateObjectIdError]