def search(tags, perpage = 100):
    page, pages = 1, 2
    while page < pages:
        photos = request("flickr.photos.search", {
            "tags": tags,
            "page": page,
            "per_page": perpage,
            "extras": all_extras})
        photos = photos.find("photos")
        pages = int(photos.get("pages"))
        page += 1
        for photo in photos:
            yield Photo.fromapi(photo.attrib)
Builds an iterator for all the photos returned by a Flickr search. This
dataset/ETHPy150Open cvondrick/pyvision/vision/flickr.py/search