Scripture API?
- thedqs
- Community Moderators
- Posts: 1042
- Joined: Wed Jan 24, 2007 8:53 am
- Location: Redmond, WA
- Contact:
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
- WelchTC
- Senior Member
- Posts: 2085
- Joined: Wed Sep 06, 2006 8:51 am
- Location: Kaysville, UT, USA
- Contact:
Currently there are no plans to provide that. However there is discussion about providing an API to the online scriptures where you could extract what ever information you needed. However, that has not been approved as of yet and could take some time to get approved, if it ever does at all.mkmurray wrote:Tom W.,
Since an open source scripture study program isn't going to be built directly on top of the current scripture display, will there be an API where the html (italics, links, etc.) for a particular verse or its footnotes can be obtained?
Thanks.
Tom
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
How would you suggest obtaining scriptural text and footnotes until then? Is there a legit way of obtaining that without breaking any copyrights or privacy policies of the Church?tomw wrote:Currently there are no plans to provide that. However there is discussion about providing an API to the online scriptures where you could extract what ever information you needed. However, that has not been approved as of yet and could take some time to get approved, if it ever does at all.
Tom
- WelchTC
- Senior Member
- Posts: 2085
- Joined: Wed Sep 06, 2006 8:51 am
- Location: Kaysville, UT, USA
- Contact:
I don't have an answer for you right now. I'll keep everyone updated as the discussions progress around an API.mkmurray wrote:How would you suggest obtaining scriptural text and footnotes until then? Is there a legit way of obtaining that without breaking any copyrights or privacy policies of the Church?
Tom
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
So I heard from a friend about a group at BYU that are trying to build a Mac desktop app to study the scriptures. It appears that they have done a little research and the scripture content can't be redistributed, so the solution is to have the app download the scripture content locally for every user. The terms and policies of the scriptures allow each user to download, copy, and print scripture content for personal use.tomw wrote:I don't have an answer for you right now. I'll keep everyone updated as the discussions progress around an API.
Tom
I wrote a little C# application that downloads all of the content pages off of scriptures.lds.org. It's about 100 MB for the whole site. However, the links on each page still point online. When I was at BYU, I wrote a Web Cloner in C++ that would download all content of a site and change the links to all be local. I'm not sure if I'll be able to find that code, but I would prefer to use a program like that to get the scripture content so as to keep the linking structures in place between pages.
Thoughts, everyone? Anyone else also write the Web Cloner (in case I can't find mine)?
- mkmurray
- Senior Member
- Posts: 3266
- Joined: Tue Jan 23, 2007 9:56 pm
- Location: Utah
- Contact:
-
- Community Administrator
- Posts: 34499
- Joined: Sat Jan 20, 2007 2:53 pm
- Location: U.S.
That's the way some of the PDA version of the scriptures are handled - the user downloads and converts them using the supplied application. What's slick is they've done it so that you can do it for any of the things on the church website - so you're not limited to the scriptures.mkmurray wrote:so the solution is to have the app download the scripture content locally for every user. The terms and policies of the scriptures allow each user to download, copy, and print scripture content for personal use.
-
- Community Moderators
- Posts: 3856
- Joined: Thu Jan 25, 2007 11:32 am
- Location: Dundee, Oregon, USA
Have you tried the 'wget' program commonly available on Linux and other Unix-like systems? The man page is pretty long, but I think I saw some stuff in there about retargeting links for just such an application.mkmurray wrote:I wrote a little C# application that downloads all of the content pages off of scriptures.lds.org. It's about 100 MB for the whole site. However, the links on each page still point online. When I was at BYU, I wrote a Web Cloner in C++ that would download all content of a site and change the links to all be local. I'm not sure if I'll be able to find that code, but I would prefer to use a program like that to get the scripture content so as to keep the linking structures in place between pages.
Thoughts, everyone? Anyone else also write the Web Cloner (in case I can't find mine)?
Oh, the actual scriptural content in plain text form is only about 7.5MB, excluding footnotes and other stuff. I got my copy from the floppy-based product the Church used to distribute, after a little expansion of the weak compression scheme on the floppies. Piped chains of 'grep' commands to find verses with combinations of words are nearly instantaneous.
- thedqs
- Community Moderators
- Posts: 1042
- Joined: Wed Jan 24, 2007 8:53 am
- Location: Redmond, WA
- Contact:
rmrichesjr wrote:Have you tried the 'wget' program commonly available on Linux and other Unix-like systems? The man page is pretty long, but I think I saw some stuff in there about retargeting links for just such an application.
Oh, the actual scriptural content in plain text form is only about 7.5MB, excluding footnotes and other stuff. I got my copy from the floppy-based product the Church used to distribute, after a little expansion of the weak compression scheme on the floppies. Piped chains of 'grep' commands to find verses with combinations of words are nearly instantaneous.
Though I am sure most of us are comfortable with the Linux command line, the common church membership and those that would benefit from this program most likely don't know the difference between bash or DOS. Also I noticed that mkmurray wrote the program in C# which makes it petty much a Windows program for the general populace.
- David