Skip to content

Instantly share code, notes, and snippets.

@necrobuffalo
Created September 19, 2014 04:23
Show Gist options
  • Save necrobuffalo/c5cca4fa8d67bc91045e to your computer and use it in GitHub Desktop.
Save necrobuffalo/c5cca4fa8d67bc91045e to your computer and use it in GitHub Desktop.
Converting EVEMon XML skill plans to CSV file
import argparse
from bs4 import BeautifulSoup
parser = argparse.ArgumentParser(description='Convert an EVEMon xml plan file to CSV.')
parser.add_argument('infile', type=argparse.FileType('r'), help='the input file')
args = parser.parse_args()
soup = BeautifulSoup(args.infile.read())
args.infile.close()
print("Skill,Level,Priority")
for tag in soup.find_all("entry"):
print tag['skill'] + ',' + tag['level'] + ',' + tag['priority']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment