def fetch_potd_url(iso_date):
    potd_url = POTD_BASE_URL + iso_date
    with contextlib.closing(urllib2.urlopen(potd_url)) as fp:
        html = fp.read()
        thumb_src = THUMB_SRC_RE.search(html)
        if not thumb_src:
            msg = 'cannot find thumbnail source for ' + potd_url
            raise ParsingException(msg)
        thumb_url = THUMB_BASE_URL+thumb_src.group(1)
    return thumb_url
Add an event to the event list.
dataset/ETHPy150Open fluentpython/example-code/attic/concurrency/wikipedia/orig/sync.py/fetch_potd_url--crossover with--dataset/ETHPy150Open gmcquillan/firetower/firetower/category.py/Events.add_event