Menu

Dumping Killmail XML

Dave Drouin

You can easily dump killmail XML in the same schema as the EVE API by running the dumpkills.py script. For convenience there's a dumpall.py script which dumps every killmail from your database into a set of xml files in a directory with each one containing up to 500 kills.

Dumping the first 10 killmails into an xml file:

./dumpkills.py -ps 1 -r 10 -o ten.xml

So this starts at kill_id 1 and includes up to 10 total. The s means the starting pykb kill_id value, The r defines how many should be included (default is 1) and the p instructs it to pretty print the XML as by default it's minimized for space efficiency.

Note that the kill_id specified will not appear in the XML. You will see the ccp kill id in there as killID and internalKillID if the killmail came from an EDK based site.

To dump all kill mails into a series of 500 row XML files:

./dumpall.py

This will create a subdirectory named data (you can override this with the d option). It will proceed to dump the xml files in there. Use loadapp.py to read them all back in. Useful for migration purposes.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.