Created
January 18, 2012 13:35
-
-
Save ripper234/1633027 to your computer and use it in GitHub Desktop.
Parse Trello XML Dump
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
Sample output, the result of processing this board: Board: https://trello.com/board/coolest-project-ever/4ec946d2772461073dbcce4c | |
Total number of lists: 6 | |
-------- | |
List: Sprint 5 | |
-------- | |
Fix input form | |
Fix bug #1315 - user can't login | |
Add Update User flow | |
-------- | |
List: Small | |
-------- | |
Install Google Analytics | |
Change header color to Blue | |
Write tests for FooController | |
More cool stuff | |
More cool stuff | |
More cool stuff | |
More cool stuff | |
-------- | |
List: Medium | |
-------- | |
Analyze DB performance on JOIN queries | |
Fix bug #112 - app crashes "sometimes" | |
Consider migrating to jQuery 3.6 | |
Medium cool stuff | |
Medium cool stuff | |
Medium cool stuff | |
Medium cool stuff | |
-------- | |
List: Large | |
-------- | |
Migrate to MongoDB | |
Implement a plugin system | |
Write a user management App | |
A few large cool stuff | |
A few large cool stuff | |
-------- | |
List: Code Ready | |
-------- | |
User can change colors | |
Fixed speed issue when reloading page | |
-------- | |
List: Deployed, To Review | |
-------- | |
First app version | |
New look for homepage | |
Ajax forms | |
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
// Parse output of http://bryanesmith.com/downloads/trello-dump/ | |
// See also http://webapps.stackexchange.com/questions/20883/how-do-i-get-my-data-out-of-trello | |
def xmlStr = new File("trello.xml").getText(); | |
def records = new XmlParser().parseText(xmlStr) | |
def lists = records.list | |
println("Total number of lists: " + lists.size()); | |
for (def list : lists) { | |
println("--------") | |
println("List: " + list.title.text()) | |
println("--------") | |
for (def card : list.card) { | |
println(card.title.text()); | |
} | |
println("\r\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment