Skip to content

Instantly share code, notes, and snippets.

@timothyklim
Created February 11, 2012 18:21
Show Gist options
  • Save timothyklim/1803412 to your computer and use it in GitHub Desktop.
Save timothyklim/1803412 to your computer and use it in GitHub Desktop.
Yandex wordstat example with Ruby mechanize
require 'mechanize'
bot = Mechanize.new
bot.get('http://kiks.yandex.ru/su/')
query = 'seo'
puts bot.get("http://wordstat.yandex.ru/?cmd=words&page=1&text=#{query}").body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment