rasa/core/utils.py
async def download_file_from_url(url: Text) -> Text:
    """Download a story file from a url and persists it into a temp file.

    Returns the file path of the temp file that contains the
    downloaded content."""
    from rasa_nlu import utils as nlu_utils

    if not nlu_utils.is_url(url):
        raise InvalidURL(url)

    async with aiohttp.ClientSession() as session:
        async with session.get(url, raise_for_status=True) as resp:
            filename = nlu_utils.create_temporary_file(await resp.read(),
                                                       mode="w+b")

    return filename
Download a story file from a url and persists it into a temp file.

    Returns the file path of the temp file that contains the
    downloaded content.
Download a story file from a url and persists it into a temp file.
Returns the file path of the temp file that contains the
downloaded content.
Download a story file from a url and persists it into a temp file . Returns the file path of the temp file that contains the downloaded content .
async def download_file_from_url(url: Text) -> Text:
    from rasa_nlu import utils as nlu_utils
    if not nlu_utils.is_url(url):
        raise InvalidURL(url)
    async with aiohttp.ClientSession() as session:
        async with session.get(url, raise_for_status=True) as resp:
            filename = nlu_utils.create_temporary_file(await resp.read(),
                                                       mode="w+b")
    return filename
async def download_file_from_url ( url : Text ) -> Text : from rasa_nlu import utils as nlu_utils if not nlu_utils . is_url ( url ) : raise InvalidURL ( url ) async with aiohttp . ClientSession ( ) as session : async with session . get ( url , raise_for_status = True ) as resp : filename = nlu_utils . create_temporary_file ( await resp . read ( ) , mode = "w+b" ) return filename
Download a story file from a url and persists it into a temp file.
Download a story file from a url and persists it into a temp file .
"""Download a story file from a url and persists it into a temp file.

    Returns the file path of the temp file that contains the
    downloaded content."""
url
Text