(
        self,
        *,
        date_range: Tuple[Optional[str], Optional[str]] = (None, None),
        force: bool = False,
    )
Download 1 or more monthly Reddit comments files from archive.org
        and save them to disk under the ``data_dir`` directory.

        Args:
            date_range: Interval specifying the [start, end) dates for which
                comments files will be downloaded. Each item must be a str
                formatted as YYYY-MM or YYYY-MM-DD (the latter is converted
                to the corresponding YYYY-MM value). Both start and end values
                must be specified, but a null value for either is automatically
                replaced by the minimum or maximum valid values, respectively.
            force: If True, download the dataset, even if it already
                exists on disk under ``data_dir``.
Download 1 or more monthly Reddit comments files from archive.org
        and save them to disk under the ``data_dir`` directory.
Download 1 or more monthly Reddit comments files from archive . org and save them to disk under the data_dir directory .
def download(
        self,
        *,
        date_range: Tuple[Optional[str], Optional[str]] = (None, None),
        force: bool = False,
    ) -> None:
        """
        Download 1 or more monthly Reddit comments files from archive.org
        and save them to disk under the ``data_dir`` directory.

        Args:
            date_range: Interval specifying the [start, end) dates for which
                comments files will be downloaded. Each item must be a str
                formatted as YYYY-MM or YYYY-MM-DD (the latter is converted
                to the corresponding YYYY-MM value). Both start and end values
                must be specified, but a null value for either is automatically
                replaced by the minimum or maximum valid values, respectively.
            force: If True, download the dataset, even if it already
                exists on disk under ``data_dir``.
        """
        date_range = utils.validate_and_clip_range(
            date_range, self.full_date_range, val_type=(str, bytes)
        )
        filestubs = self._generate_filestubs(date_range)
        for filestub in filestubs:
            tio.download_file(
                urllib.parse.urljoin(DOWNLOAD_ROOT, filestub),
                filename=filestub,
                dirpath=self.data_dir,
                force=force,
            )
def download ( self , * , date_range : Tuple [ Optional [ str ] , Optional [ str ] ] = ( None , None ) , force : bool = False , ) -> None : date_range = utils . validate_and_clip_range ( date_range , self . full_date_range , val_type = ( str , bytes ) ) filestubs = self . _generate_filestubs ( date_range ) for filestub in filestubs : tio . download_file ( urllib . parse . urljoin ( DOWNLOAD_ROOT , filestub ) , filename = filestub , dirpath = self . data_dir , force = force , )