Skip to content

Instantly share code, notes, and snippets.

#encoding:UTF-8
#!/usr/bin/env ruby
# This regex helps with copying failed entries: (.*$)(?=\n.*<title>405 Not Allowed</title>)
# You also need to remove surrounding quotes from failed entries and replace \" with " and \\ with \
require 'rubygems'
require 'csv'
require 'httparty'
require 'json'