Skip to content

Instantly share code, notes, and snippets.

View chrisZingel's full-sized avatar

Chris Zingel chrisZingel

  • Tauranga, New Zealand
View GitHub Profile
@chrisZingel
chrisZingel / gist:9593454
Created March 17, 2014 03:24
Search Engine ranking of keywords
# encoding=UTF-8
require 'rubygems'
require 'faraday'
require 'nokogiri'
require 'open-uri'
require 'yaml'
require 'ostruct'
# rake task to
#!/usr/bin/env ruby
# Details refer to the blog post http://www.zingtech.co.nz/blog/spree_ck_editor_pages
require 'rubygems'
require 'faraday'
$base_url = 'http://0.0.0.0:4000'
puts "Enter ID that you want to test removal? "
id = gets.chomp
@conn = Faraday.new(:url => $base_url) do |faraday|
faraday.response :logger # log requests to STDOUT
faraday.request :url_encoded # form-encode POST params