yet another fail

I weren’t capable of write that code throughout an interview. I have been requested to scrape distinctive 200 posts from a json feed. require ‘internet/http’ require ‘json’ start_url = “https://url-to-json.feed” posts = [] loop do physique = JSON.parse(Web::HTTP.get(URI(start_url))) next_page = physique[“paging”][“next”] physique[“data”].every do |new_post| id_exists = posts.detect submit except id_exists posts << new_post finish finish […]