diff options
author | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-08 23:05:04 +0100 |
---|---|---|
committer | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-08 23:05:04 +0100 |
commit | 8050476c8a853229f1ab23edee929e5ba9515a8e (patch) | |
tree | 461c70144fef2348c06b2287dfba3d8160b73305 /parsers | |
parent | b9d2f01b0dd38010395222bfeaef086f7d7a0865 (diff) | |
download | troggle-8050476c8a853229f1ab23edee929e5ba9515a8e.tar.gz troggle-8050476c8a853229f1ab23edee929e5ba9515a8e.tar.bz2 troggle-8050476c8a853229f1ab23edee929e5ba9515a8e.zip |
parsing
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/logbooks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 88816d4..cc5db5a 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -119,6 +119,7 @@ def Parselogwikitxt(year, expedition, txt): trippara = re.findall("===(.*?)===([\s\S]*?)(?====)", txt)
for triphead, triptext in trippara:
tripheadp = triphead.split("|")
+ #print tripheadp
assert len(tripheadp) == 3, (tripheadp, triptext)
tripdate, tripplace, trippeople = tripheadp
tripsplace = tripplace.split(" - ")
@@ -133,6 +134,7 @@ def Parselogwikitxt(year, expedition, txt): tu = ""
#assert tripcave == "Journey", (triphead, triptext)
+ print tripdate
ldate = ParseDate(tripdate.strip(), year)
#print "\n", tripcave, "--- ppp", trippeople, len(triptext)
EnterLogIntoDbase(date = ldate, place = tripcave, title = tripplace, text = triptext, trippeople=trippeople, expedition=expedition, logtime_underground=0)
@@ -250,6 +252,7 @@ def Parseloghtml03(year, expedition, txt): EnterLogIntoDbase(date = ldate, place = tripcave, title = triptitle, text = ltriptext, trippeople=trippeople, expedition=expedition, logtime_underground=0)
yearlinks = [
+ ("2009", "2009/2009logbook.txt", Parselogwikitxt),
("2008", "2008/2008logbook.txt", Parselogwikitxt),
("2007", "2007/logbook.html", Parseloghtmltxt),
("2006", "2006/logbook/logbook_06.txt", Parselogwikitxt),
@@ -267,6 +270,7 @@ yearlinks = [ ("1994", "1994/log.htm", Parseloghtml01),
("1993", "1993/log.htm", Parseloghtml01),
("1992", "1992/log.htm", Parseloghtml01),
+ #("1991", "1991/log.htm", Parseloghtml01),
]
def SetDatesFromLogbookEntries(expedition):
|