require 'net/http'
require 'json'
uri = URI('https://www.reddit.com/r/CatsStandingUp.json')
response = Net::HTTP.get(uri)
parsed_response = JSON.parse(response)
posts = parsed_response['data']['children']
html = ""
posts.each do |post|
thumbnail = post['data']['thumbnail']
html << "

"
end
File.write('cats_standing_up.html', html)