import re


def get_data_url(response):
    """
    Returns the url contained in the data-ajax attribute from the
    response html content.
    """

    matches = re.search("url\": \\'(.*?)'", response.content.decode('utf-8'), re.S | re.M)
    if not matches:
        return ''

    return matches.group(1)