Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
Last active February 19, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanBradbury/c564fddf84455fecf59005c89a455cda to your computer and use it in GitHub Desktop.
Save DanBradbury/c564fddf84455fecf59005c89a455cda to your computer and use it in GitHub Desktop.
Ripping character data from ultimateframedata.com

Works on character links like this one..https://ultimateframedata.com/wario.php

  1. open console w/ F12 and paste the code above in
  2. final string is a CSV which you can import and use
  3. celebrate automation 🎉

Pasting this for my own future usage / refinement for pulling the entire cast out.. good starting point and looking at the source should get you any details that are presented and have the copy/paste protection on the website

var final_csv = '';
for(var i=0; i < $('.movecontainer').length; i++) {
var item = $('.movecontainer')[i];
try {
var movename = $(item).find('.movename')[0].innerHTML.replace(/\s/g, '');
var totalframes = $(item).find('.totalframes')[0].innerHTML.replace(/\s/g, '');
var startup = $(item).find('.startup')[0].innerHTML.replace(/\s/g, '');
var advantage = $(item).find('.advantage')[0].innerHTML.replace(/\s/g, '');
var landinglag = $(item).find('.landinglag')[0].innerHTML.replace(/\s/g, '');
final_csv += movename+","+startup+","+advantage+","+totalframes+","+landinglag;
final_csv += "\n";
}catch(err) {
var movename = $(item).find('.movename')[0].innerHTML.replace(/\s/g, '');
var totalframes = $(item).find('.totalframes')[0].innerHTML.replace(/\s/g, '');
var landinglag = $(item).find('.landinglag')[0].innerHTML.replace(/\s/g, '');
var invuln = $(item).find('.notes')[0].innerHTML.replace(/\s/g, '').replace(/Invulnerableonframe/g, 'invuln ').replace('.', '');
final_csv += movename+","+invuln+","+totalframes+","+landinglag;
final_csv += "\n";
}
}
final_csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment