From 2f18f5ed9a669ec853e684eac7c8f695eed3be8c Mon Sep 17 00:00:00 2001 From: Tom Parker Date: Sun, 21 Oct 2012 13:05:39 +0100 Subject: [PATCH] Tidying up a few small items --- literotica.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/literotica.py b/literotica.py index faa734e..ed0b46e 100644 --- a/literotica.py +++ b/literotica.py @@ -15,13 +15,11 @@ open("dump", "wb").write(data.encode("utf-8")) title = titlePattern.findall(data) -print title title = title[0] +print title content = u"" while True: contentMatch = contentPattern.findall(data) - print page.headers.headers - print type(data) content += contentMatch[0] #print content nextMatch = nextPattern.findall(data) @@ -33,7 +31,6 @@ page = cache.get(nextURL, max_age=-1) data = page.read() - toc = tocStart(title) generatePage(url, title, content, title, toc) tocEnd(toc)