MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / load_main_index

Function load_main_index

archivebox/index/__init__.py:249–256  ·  view source on GitHub ↗

parse and load existing index with any new links from import_path merged in

(out_dir: Path=OUTPUT_DIR, warn: bool=True)

Source from the content-addressed store, hash-verified

247
248@enforce_types
249def load_main_index(out_dir: Path=OUTPUT_DIR, warn: bool=True) -> List[Link]:
250 """parse and load existing index with any new links from import_path merged in"""
251 from core.models import Snapshot
252 try:
253 return Snapshot.objects.all()
254
255 except (KeyboardInterrupt, SystemExit):
256 raise SystemExit(0)
257
258@enforce_types
259def load_main_index_meta(out_dir: Path=OUTPUT_DIR) -> Optional[dict]:

Callers 14

initFunction · 0.85
statusFunction · 0.85
addFunction · 0.85
removeFunction · 0.85
updateFunction · 0.85
list_linksFunction · 0.85
test_basic_initMethod · 0.85
test_conflicting_initMethod · 0.85
test_add_arg_urlMethod · 0.85
test_add_arg_fileMethod · 0.85
test_add_stdin_urlMethod · 0.85
test_remove_exactMethod · 0.85

Calls

no outgoing calls

Tested by 8

test_basic_initMethod · 0.68
test_conflicting_initMethod · 0.68
test_add_arg_urlMethod · 0.68
test_add_arg_fileMethod · 0.68
test_add_stdin_urlMethod · 0.68
test_remove_exactMethod · 0.68
test_remove_regexMethod · 0.68
test_remove_domainMethod · 0.68