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
function canvasApp() { | |
if (!canvasSupport()) { | |
return; | |
} | |
var canvas = document.getElementById('canvasOne'); | |
var ctx = canvas.getContext('2d'); | |
setup(); |
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
(function(){ | |
var csv = require('fast-csv'); | |
var jsonfile = require('jsonfile'); | |
var monsters = {}; | |
var skipHeaderRow = true; | |
var inputFile = "Breeding_Combinations.csv"; // implied to sibling of convert_siralim_csv.js | |
var outputFile = "MonsterInfo.json"; // explicitly sibling of convert_siralim_csv.js | |
var csvMap = [ // maps row columns to property names | |
"family", | |
"offspring", |
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
#!/usr/bin/env python3 | |
# Scrapes breeding combinations + Monster Stats from Siralim Wiki and writes them to a csv file | |
import csv | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
with open('Breeding_Combinations.csv', 'w', newline='') as csvfile: | |
print('Starting Breeding Combinations write...') | |
writer = csv.writer(csvfile, quoting=csv.QUOTE_MINIMAL) |
OlderNewer