def get_iframe_info(url):
    iframe_url = None
    iframe_width = None
    iframe_height = None

    parsed_url = urlparse.urlparse(url)
    hostname = parsed_url.netloc
    path = parsed_url.path
    query = dict(parse_qsl(parsed_url.query))

    if hostname == 'youtube.com' or hostname == 'www.youtube.com':
        if path == '/watch' and query in 'v':
            iframe_url = 'http://www.youtube.com/embed/%s' % query['v']
            iframe_width = 350
            iframe_height = 197
    elif hostname == 'youtu.be':
        iframe_url = 'http://www.youtube.com/embed/%s' % path[1:]
        iframe_width = 350
        iframe_height = 197
    elif hostname == 'vimeo.com':
        iframe_url = 'http://player.vimeo.com/video/%s' % path[1:]
        iframe_width = 350
        iframe_height = 197
    elif hostname == 'vine.co':
        match = _VINE_PATH_RE.match(path)
        if match:
            iframe_url = 'https://vine.co/v/%s/embed/simple' % match.group(1)
            iframe_width = 350
            iframe_height = 350

    return iframe_url, iframe_width, iframe_height
dataset/ETHPy150Open mihaip/streamspigot/app/datasources/thumbnails.py/get_iframe_info/swapped operands of `in`