diff --git a/www/conservancy/bsoup.py b/www/conservancy/bsoup.py
index fb0ef6cb..28ccdd08 100644
--- a/www/conservancy/bsoup.py
+++ b/www/conservancy/bsoup.py
@@ -1,6 +1,7 @@
# -*- encoding: utf-8 -*-
import io
+import itertools
import re
import bs4
@@ -86,25 +87,22 @@ class BeautifulSoup(bs4.BeautifulSoup):
except AttributeError:
return False
- def iter_attr(self, tag, attr_name, **kwargs):
- kwargs[attr_name] = True
- for elem in self.find_all(tag, **kwargs):
- yield elem[attr_name]
+ def iter_images(self):
+ """Return an iterator of all image elements in this document.
- def iter_image_urls(self):
- """Return an iterator of source URL strings of all images in this document.
-
- Images include tags and