def get_download_list(config):
    """Returns a list of photos available to download."""
    if not config.get('webshots.enabled'):
        return []

    page = urllib.urlopen(
        'http://www.webshots.com/rss?type=daily').read()
    doc = minidom.parseString(page)
    items = doc.getElementsByTagName('item')
    titles = [item.getElementsByTagName('title')[0].childNodes[0].data for item
              in items]
    links = [item.getElementsByTagName('link')[0].childNodes[0].data for item
              in items]
    assert len(titles)==len(links)
    photo_ids = [re.match(
        r'http://www.webshots.com/pro/photo/(\d+)', link).group(1) for
        link in links]
    result = []
    for image_link, photo, title in zip(links, photo_ids, titles):
        result.append({
            'name': photo % 'webshots_d%s.jpg',
            'title': title,
            'data': {
                'photo': photo,
                'image_link': image_link,
                'high_res_link': 'https://subs.webshots.com/regsub?vhost=www'
                                 '&photos=%s&res=high' % photo
                }
            })
    return result
dataset/ETHPy150Open thesamet/webilder/src/webilder/webshots/utils.py/get_download_list/swapped operands of `%`