Skip to content

Instantly share code, notes, and snippets.

@jkhowland
Last active August 29, 2015 14:17
Show Gist options
  • Save jkhowland/abc0173afe755ade857e to your computer and use it in GitHub Desktop.
Save jkhowland/abc0173afe755ade857e to your computer and use it in GitHub Desktop.
A simple example of json scraped from dutytogod.lds.org
{
"deacon": {
"understand": {
"learn": {
"bullet": "<ul class=\"bullet\">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<p>Read <a href=\"https://www.lds.org/scriptures/dc-testament/dc/11.21?lang=eng#20\" onclick=\"newWindow(this.href); return false;\" class=\"scriptureRef\">Doctrine\n\t\t\t\t\t\t\t\tand Covenants 11:21</a>. What promises does the Lord give to those who study His word?\n\t\t\t\t\t\t\tRecord your thoughts in the box below.</p>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<p>You will need a basic understanding and a testimony of gospel truths to\n\t\t\t\t\t\t\tfulfill your duties now as a priesthood holder and in the future as a full-time missionary\n\t\t\t\t\t\t\tand as a husband and father.</p>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<p>Look at the list of <a href=\"https://www.lds.org/young-men/duty-to-god/deacon/understand/act?lang=eng\" class=\"crossRef\">doctrinal topics</a>, and choose\n\t\t\t\t\t\t\tfour or more that you would like to learn about. One of these should be “The Priesthood and\n\t\t\t\t\t\t\tPriesthood Keys.” You can use the scriptures (including the Topical Guide), <span class=\"emphasis\"><span class=\"crossRef\"><no-search id=\"36863_000_001\"></no-search>True to the\n\t\t\t\t\t\t\t\t\tFaith</span>, Preach My Gospel,</span> and the words of latter-day prophets to learn\n\t\t\t\t\t\t\tabout these topics.</p>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>",
"journal": {
"name":"My Journal"
},
"annotations": {}
},
"act": {
"bullet": "<ul class=\"bullet\">\n<li>\n<p>Review the list of the <a href=\"https://www.lds.org/young-men/duty-to-god/deacon/understand/act?lang=eng\" class=\"crossRef\">doctrinal topics</a> you studied as\n a deacon. Based on your experiences and additional study, update your outline on “The\n Priesthood and Priesthood Keys.” Choose four or more additional topics you would like to\n learn about and teach. You can use the scriptures (including the <a href=\"https://www.lds.org/scriptures/tg?lang=eng\" onclick=\"newWindow(this.href); return false;\">Topical Guide</a>), <span class=\"emphasis\"><span class=\"crossRef\"><no-search id=\"36863_000_001\"></no-search><a href=\"http://lds.org/ldsorg/v/index.jsp?locale=0&amp;sourceId=aa8b991a83d20110VgnVCM100000176f620a____&amp;vgnextoid=7b2a5f74db46c010VgnVCM1000004d82620aRCRD\">True to the\nFaith</a></span>, <a href=\"http://lds.org/library/display/0,4945,8057-1-4424-1,00.html\">Preach My Gospel</a>,</span> and the words of latter-day prophets to learn\n about these topics.</p>\n</li>\n<li>\n<p>For each topic you study, create a simple outline. It could include: (1) a\n definition of the topic, (2) teachings and examples from the scriptures and your own life,\n and (3) your thoughts and feelings about why this topic is important. For examples of\n outlines, see <span class=\"emphasis\"><a href=\"http://lds.org/library/display/0,4945,8057-1-4424-1,00.html\">Preach My Gospel</a></span> (chapters 2 and 3).</p>\n</li>\n<li>\n<p>Click one of the topics below to begin making your outlines.</p>\n</li>\n </ul>",
"journal": {},
"annotations":{
"journal": {},
"invite": {
"title": "Doctrinal Topics",
"invite-header": "Topic",
"list": [
{
"name": "The Godhead",
"post": "planForm_The_Godhead",
"p1": "<p><a target=\"_blank\" href=\"https://www.lds.org/youth/topic/the-godhead?lang=eng\">Learn more about the Godhead</a></p>",
"p2": "<p>\nOutline for teaching about this topic\n\n</p>",
"journal": {
"name":"My Journal"
},
}
]
}
}
},
"learn": {
"bullet": "<ul class=\"bullet\">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<p>Using the outlines you have prepared, teach others about these doctrinal\n\t\t\t\t\t\t\ttopics. Counsel with your parents and quorum leaders to determine when you can do\n\t\t\t\t\t\t\tthis.</p>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<p>Record in the space below any thoughts or feelings you have about this\n\t\t\t\t\t\t\texperience.</p>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>",
"journal": {
"name":"My Journal"
},
"annotations": {}
},
}
}
}
@jkhowland
Copy link
Author

You'll find journals both outside and inside the annotations. Anyplace a journal may be expected, but isn't found should be marked with an empty dictionary. The same for annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment