Created
February 11, 2012 18:21
-
-
Save timothyklim/1803412 to your computer and use it in GitHub Desktop.
Yandex wordstat example with Ruby mechanize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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