MMS zip download link problem -- file naming

whitingeric
New Member
Posts: 1
Joined: Sun Jan 21, 2007 9:04 pm

MMS zip download link problem -- file naming

Postby whitingeric » Sun Jan 21, 2007 9:25 pm

First -- thanks for the new gospel library navigation. Tons better...

Simple problem:
http://www.lds.org/handheld/newarchive/0,18495,344-1-1,00.html
April 2006 conference has some bad html -- it references a J: drive with a filename with 'wade' in it... That link fails.

<td valign="top" class="featurestext"><a href="J:ClientsHandheldNewFromWademarkmyscriptures_aprilConference.zip" class="featureslink">General Conference, April 2006</a><font color="#316398">  (200 KB)</font></td>
</tr>


More difficult problem:
I used a simple perl script to wget the html and then wget all the zip files referenced on the main page. I discovered that the filenaming conventions are interesting...

Code: Select all

#!/usr/bin/perl
foreach $_ (`wget [url]http://www.lds.org/handheld/newarchive/0,18495,344-1-1,00.html[/url]  -q -O -`) {
    next unless (/\.zip/);
    if (/href="(\S+\.zip)/){
        $name=$1;
        $name=~s/'//g;
        $link="www.lds.org/$1";
        `wget $link  `;
    }
}

There is a little bit of mixed up case and hypen and underscores are not used consistiently. Not a big deal at all, but it makes the file listing interesting. :) I think there are at least 6 different ways that 'Mark My Scriptures' is spelled:

MarkMyScr
MarkMyScrip
MarkMyScript
MarkMyScriptures
markmyscriptures
MMS

Also the Ensign files are all named differently.

Here is the ls *.zip after the script runs: (try to find all the ensign files in any order)

BOMGospelDoctrineSG.zip
BOMGospelDoctrine_Teacher.zip
Ensign-MMS-May2004.zip
EnsignNov2003.zip
FamilyProclamation.zip
hymns.zip
LivingChrist.zip
MarkMyScrAprEnsign2005.zip
MarkMyScrChildrenSongbook.zip
MarkMyScrEnsign2005August.zip
MarkMyScr-Ensign_2005_Mar.zip
MarkMyScrEnsign2006April.zip
MarkMyScrEnsign2006June.zip
MarkMyScrEnsignMay2006.zip
MarkMyScrGospelPrinciples.zip
MarkMyScripApril2005GenConf.zip
MarkMyScripEnsign2005December.zip
MarkMyScripEnsign2005July.zip
MarkMyScrip-Ensign2005May.zip
MarkMyScripEnsign2005September.zip
MarkMyScripEnsign2006August.zip
MarkMyScripEnsign2006March.zip
MarkMyScripEnsign2006November.zip
MarkMyScripEnsign2006September.zip
MarkMyScripNTGospelDoctrineManual.zip
MarkMyScripNTGospelDoctrineStudyGuide.zip
MarkMyScripTeachings-SpencerWKimball.zip
MarkMyScript-Ensign2005October.zip
MarkMyScripturesDecEnsign.zip
MarkMyScriptures-Ensign2005June.zip
MarkMyScripturesEnsign2005November.zip
MarkMyScripturesEnsign2006February.zip
MarkMyScripturesEnsign2006January.zip
MarkMyScripturesEnsign2006July.zip
MarkMyScripturesEnsign2007January.zip
markmyscriptures_ensignOctober.zip
markmyscriptures_octoberConference.zip
MarkMyScripturesTeachings-WilfordWoodruff.zip
MarkMyScrOTGospelDoctrineSG.zip
MarkMyScrTruetotheFaith.zip
MMS-April2004GC.zip
MMS-Ensign_2004_Dec.zip
MMS-Ensign_2004_Nov.zip
MMS-Ensign_2005_Feb.zip
MMS-Ensign_2005_Jan.zip
MMS-October2003GC.zip
MMS-October2004GC.zip
MMS-OurHeritage.zip
MMS-Teachings-DavidO.McKay.zip
TeachingsPresidents_Grant.zip

Return to “Mobile Applications”

Who is online

Users browsing this forum: No registered users and 1 guest