platypush/plugins/http/request/__init__.py
def download(self, url: str, path: str, **kwargs):
        """
        Locally download the content of a remote URL.

        :param url: URL to be downloaded.
        :param path: Path where the content will be downloaded on the local filesystem - must be a file name.
        """
        path = os.path.abspath(os.path.expanduser(path))
        content = self._exec(method='get', url=url, output='binary', **kwargs)

        with open(path, 'wb') as f:
            f.write(content)

        Locally download the content of a remote URL.

        :param url: URL to be downloaded.
        :param path: Path where the content will be downloaded on the local filesystem - must be a file name.
        
Locally download the content of a remote URL.
Locally download the content of a remote URL .
def download(self, url: str, path: str, **kwargs):
        path = os.path.abspath(os.path.expanduser(path))
        content = self._exec(method='get', url=url, output='binary', **kwargs)
        with open(path, 'wb') as f:
            f.write(content)
def download ( self , url : str , path : str , ** kwargs ) : path = os . path . abspath ( os . path . expanduser ( path ) ) content = self . _exec ( method = 'get' , url = url , output = 'binary' , ** kwargs ) with open ( path , 'wb' ) as f : f . write ( content )
Locally download the content of a remote URL.
Locally download the content of a remote URL .
"""
        Locally download the content of a remote URL.

        :param url: URL to be downloaded.
        :param path: Path where the content will be downloaded on the local filesystem - must be a file name.
        """
self
url
str
URL to be downloaded.
URL to be downloaded .
path
str
Path where the content will be downloaded on the local filesystem - must be a file name.
Path where the content will be downloaded on the local filesystem - must be a file name .