Commit cc5dc37b authored by Zach Osman's avatar Zach Osman
Browse files

quicksave pt2, done parsing

parent 3e427a87
......@@ -148,6 +148,9 @@ def load_data():
error = []
uniqueId = ""
title = ""
publishedDatetime = ""
updatedDatetime = ""
content = ""
# get event ID
try:
......@@ -155,16 +158,43 @@ def load_data():
except Exception:
error.append("Error with getting ID")
# get event Title
try:
title = entry.title.text
except Exception:
error.append("Error with getting Title")
# get published Datetime
try:
publishedDatetime = entry.published.text
except Exception:
error.append("Error with getting PublishedDatetime")
# get updated Datetime
try:
updatedDatetime = entry.updated.text
except Exception:
error.append("Error with getting UpdatedDatetime")
# get content
try:
content = entry.content.text
except Exception:
error.append("Error with getting get content")
#print crap
print "ID: " + uniqueId
print "Title: " + title
print "Published Datetime: " + publishedDatetime
print "Updated Datetime: " + updatedDatetime
print "Location: " + content.splitlines()[0]
print "Time: " + content.splitlines()[1]
print "Description: " + "\n".join(content.split("\n")[3:])
# # pulls up an entries in the list of entries, finds the title tag and .text deletes all xml tags and returns just the text as a string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment