Skip to content

Commit

Permalink
Tidying up a few small items
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Oct 21, 2012
1 parent e7f2e98 commit 2f18f5e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions literotica.py
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 2f18f5e

Please sign in to comment.