Spaces:
Sleeping
Sleeping
Create ingest/registry.py
Browse files- ingest/registry.py +15 -23
ingest/registry.py
CHANGED
|
@@ -1,24 +1,16 @@
|
|
| 1 |
-
from
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
if a.live and a.robots_allowed()
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
def get_stub_adapters():
|
| 15 |
-
return {
|
| 16 |
-
"NSA": StubAdapter("NSA", "robots.txt blocks automated access"),
|
| 17 |
-
"NRO": StubAdapter("NRO", "no public electronic reading room"),
|
| 18 |
-
"SAP": StubAdapter("SAP", "special access programs are exempt"),
|
| 19 |
-
"TEN-CAP": StubAdapter("TEN-CAP", "no public FOIA search endpoint"),
|
| 20 |
-
"AATIP": StubAdapter("AATIP", "no standalone FOIA library"),
|
| 21 |
-
"Special Activities": StubAdapter("Special Activities", "intelligence protected"),
|
| 22 |
-
"DIA": StubAdapter("DIA", "robots.txt blocks automated access"),
|
| 23 |
-
"NGA": StubAdapter("NGA", "robots.txt blocks automated access"),
|
| 24 |
-
}
|
|
|
|
| 1 |
+
from .live_adapters import (
|
| 2 |
+
FBIVaultAdapter,
|
| 3 |
+
CIAReadingRoomAdapter,
|
| 4 |
+
)
|
| 5 |
+
from .stub_adapters import (
|
| 6 |
+
NSAStubAdapter,
|
| 7 |
+
NGAStubAdapter,
|
| 8 |
+
)
|
| 9 |
|
| 10 |
+
def get_all_adapters():
|
| 11 |
+
return [
|
| 12 |
+
FBIVaultAdapter(),
|
| 13 |
+
CIAReadingRoomAdapter(),
|
| 14 |
+
NSAStubAdapter(),
|
| 15 |
+
NGAStubAdapter(),
|
| 16 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|