Created
September 19, 2014 04:23
-
-
Save necrobuffalo/c5cca4fa8d67bc91045e to your computer and use it in GitHub Desktop.
Converting EVEMon XML skill plans to CSV file
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
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