Module Import alias Import alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias alias alias alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias alias alias alias alias ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str For NameStore NameLoad body TryExcept body Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Index Num Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A logging N/A requests pyembed.core parse pyembed.core.error PyEmbedError N/A N/A urlparse parse_qsl urljoin urlsplit urlunsplit urllib urlencode N/A N/A N/A ImportError N/A urllib.parse parse_qsl urljoin urlsplit urlunsplit urlencode PyEmbedConsumerError N/A PyEmbedError N/A N/A Thrown if there is an error discovering an OEmbed URL. N/A get_first_oembed_response N/A N/A oembed_urls max_width max_height N/A None None N/A N/A Fetches an OEmbed response from a list of OEmbed URLs.  The URLs will be
    tried in turn until one returns successfully.

    :param oembed_urls: an iterable of OEmbed URLs.
    :param max_width: (optional) the maximum width of the embedded resource.
    :param max_height: (optional) the maximum height of the embedded resource.
    :returns: an PyEmbedResponse, representing the resource to embed.
    :raises PyEmbedError: if there is an error fetching the response.
     N/A oembed_url oembed_urls N/A N/A N/A N/A N/A get_oembed_response oembed_url max_width max_width max_height max_height N/A N/A N/A PyEmbedError N/A N/A N/A N/A logging warn N/A Error consuming URL %s oembed_url exc_info True N/A N/A PyEmbedConsumerError N/A No valid OEmbed responses for URLs %s oembed_urls N/A get_oembed_response N/A N/A oembed_url max_width max_height N/A None None N/A N/A Fetches an OEmbed response for a given URL.

    Deprecated: use get_first_oembed_response.

    :param oembed_url: the OEmbed URL.
    :param max_width: (optional) the maximum width of the embedded resource.
    :param max_height: (optional) the maximum height of the embedded resource.
    :returns: an PyEmbedResponse, representing the resource to embed.
    :raises PyEmbedError: if there is an error fetching the response.
     N/A response N/A N/A requests get N/A __format_url oembed_url max_width max_height N/A N/A N/A response ok N/A N/A N/A PyEmbedConsumerError N/A Failed to get %s (status code %s) N/A oembed_url N/A response status_code N/A content_type N/A N/A N/A N/A N/A response headers N/A content-type split ; N/A 0 N/A N/A N/A parse parse_oembed N/A response text content_type N/A __format_url N/A N/A oembed_url max_width max_height N/A None None N/A N/A N/A scheme netloc path query_string fragment N/A urlsplit oembed_url N/A query_params N/A parse_qsl query_string N/A N/A max_width None N/A N/A N/A N/A query_params append N/A maxwidth max_width N/A max_height N/A N/A N/A N/A query_params append N/A maxheight max_height N/A new_query_string N/A urlencode query_params doseq True N/A N/A urlunsplit N/A scheme netloc path new_query_string fragment N/A