Create a gist now

Instantly share code, notes, and snippets.

How to query StackOverflow for the most recent, unanswered but upvoted, questions tagged "oink"
#!/usr/bin/env ruby
require 'zlib'
require 'open-uri'
require 'json'
io =""))
obj = JSON.parse(
questions = obj['questions']
unanswered_questions = questions.reject { |q| q.has_key?('accepted_answer_id') }
unanswered_questions.each do |question|
puts "#{question['title']}{question['question_id']}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment