| 245 | |
| 246 | |
| 247 | def log_importing_started(urls: Union[str, List[str]], depth: int, index_only: bool): |
| 248 | _LAST_RUN_STATS.parse_start_ts = datetime.now(timezone.utc) |
| 249 | print('{green}[+] [{}] Adding {} links to index (crawl depth={}){}...{reset}'.format( |
| 250 | _LAST_RUN_STATS.parse_start_ts.strftime('%Y-%m-%d %H:%M:%S'), |
| 251 | len(urls) if isinstance(urls, list) else len(urls.split('\n')), |
| 252 | depth, |
| 253 | ' (index only)' if index_only else '', |
| 254 | **ANSI, |
| 255 | )) |
| 256 | |
| 257 | def log_source_saved(source_file: str): |
| 258 | print(' > Saved verbatim input to {}/{}'.format(SOURCES_DIR_NAME, source_file.rsplit('/', 1)[-1])) |