Downloads link to local file

        :param local_file: Save url as this path
        :param headers: Headers to fetch url
        :param cookies: Cookies to fetch url
        :param chunk_size: int

def download_to_file(self, local_file, headers=None, cookies=None,
                         chunk_size=1024):
        """Downloads link to local file

        :param local_file: Save url as this path
        :param headers: Headers to fetch url
        :param cookies: Cookies to fetch url
        :param chunk_size: int
        """

        if not headers:
            headers = HEADERS

        if not cookies:
            cookies = {}

        req = requests.get(self.url, headers=headers, cookies=cookies,
                           stream=True)
        with open(local_file, "wb") as local_download:
            for chunk in req.iter_content(chunk_size):
                if chunk:
                    local_download.write(chunk)