Skip to content

Commit

Permalink
faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Golub committed Mar 12, 2010
1 parent 36c57d7 commit 566d8e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def javascript_files(self):

class MediaRSSModule(tornado.web.UIModule):
def render(self, entry):
soup = BeautifulSoup.BeautifulSoup(entry.body)
soup = BeautifulSoup.BeautifulSoup(entry.body,
parseOnlyThese=BeautifulSoup.SoupStrainer('img'))
imgs = soup.findAll("img")
thumbnails = []
for img in imgs:
Expand Down

0 comments on commit 566d8e5

Please sign in to comment.