MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / log_importing_started

Function log_importing_started

archivebox/logging_util.py:247–255  ·  view source on GitHub ↗
(urls: Union[str, List[str]], depth: int, index_only: bool)

Source from the content-addressed store, hash-verified

245
246
247def 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
257def log_source_saved(source_file: str):
258 print(' > Saved verbatim input to {}/{}'.format(SOURCES_DIR_NAME, source_file.rsplit('/', 1)[-1]))

Callers 1

addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected