Skip to content

Instantly share code, notes, and snippets.

@yuheiomori
Created February 21, 2011 14:31
Show Gist options
  • Save yuheiomori/837123 to your computer and use it in GitHub Desktop.
Save yuheiomori/837123 to your computer and use it in GitHub Desktop.
var result = '[';
$('table.wikitable').eq(2).find('tr').each(function(){
if($(this).find('td').eq(0).find('b').html() === null){
return true;
}
result= result +
'%w('+
$(this).find('td').eq(0).find('b').html() + ' '+ $(this).find('td').eq(1).html() +' '+ $(this).find('td').eq(2).find('a').eq(1).html()
+ '),\r\n';
});
result = result + ']'
copy(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment