INNER CODE UNIT · Python

year

lefterisloukas/edgar-crawler · download_filings.py:264

                if year == datetime.now().year and quarter > math.ceil(
                    datetime.now().month / 3
                ):  # Skip future quarters
                    break

                index_filename = f"{year}_QTR{quarter}.tsv"

                # Check if the index file is already present
                if skip_present_indices and os.path.exists(
                    os.path.join(indices_folder, index_filename)
                ):
                    if first_iteration:
                        LOGGER.info(f"Skipping {index_filename}")
                    continue

                # If not, download the index file
                url = f"{base_url}/{year}/QTR{quarter}/master.zip"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…