Skip to content

Instantly share code, notes, and snippets.

@DanBradbury DanBradbury/usage.md
Last active Feb 19, 2020

Embed
What would you like to do?
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
You can’t perform that action at this time.