Skip to content

Instantly share code, notes, and snippets.

@allenluce-zz
Created November 6, 2012 23:31
Show Gist options
  • Save allenluce-zz/4028469 to your computer and use it in GitHub Desktop.
Save allenluce-zz/4028469 to your computer and use it in GitHub Desktop.
last_id = 999
all('#igrid_ranking_table > .g-row .keyword-cell span').each {|row|
id = row[:id].split('-')[1].to_i
id.should be < last_id
last_id = id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment