Skip to content

Instantly share code, notes, and snippets.

@rohitdholakia
Created May 14, 2013 06:44
Show Gist options
  • Save rohitdholakia/5574122 to your computer and use it in GitHub Desktop.
Save rohitdholakia/5574122 to your computer and use it in GitHub Desktop.
A snapshot of the utils file
def getCreationDate(elem):
return elem.get("CreationDate")
def getParent(elem):
return elem.get("ParentId")
def getPostTypeId(elem):
return elem.get("PostTypeId")
def getOwner(elem):
return elem.get("OwnerUserId")
def getViewCount(elem):
return elem.get("ViewCount")
def getupvotes(elem):
return elem.get("UpVotes")
def getdownvotes(elem):
return elem.get("DownVotes")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment