11-10-2009, 10:29 PM
Well, you guys were basically no help. Haha, no worries, though. I spent all night reading, plus trial-and-error [Note: I knew nothing about Python going into it], and eventually developed this little script:
And modified the search tag for each script I was using.
So, another project down. Plus, check out my screenshot:
Sweet, right? Eh, probably not if you're not into Eve [most of you aren't]. And from here, there's actually a lot more I could do with it, such as listing my specific skills or skills I'm training on. I've discovered that XML is pretty freaking awesome!
Code:
#!/usr/bin/env python
import xml.etree.ElementTree as ET
tree = ET.parse("/home/me/eve/character.xml")
def traverse(node):
for c in node.getchildren():
if c.tag == "name": print c.text
traverse(c)
root = tree.getroot()
traverse(root)
And modified the search tag for each script I was using.
So, another project down. Plus, check out my screenshot:
Sweet, right? Eh, probably not if you're not into Eve [most of you aren't]. And from here, there's actually a lot more I could do with it, such as listing my specific skills or skills I'm training on. I've discovered that XML is pretty freaking awesome!