Spaces:
Sleeping
Sleeping
Update ingest/cia_reading_room.py
Browse files- ingest/cia_reading_room.py +2 -15
ingest/cia_reading_room.py
CHANGED
|
@@ -1,19 +1,6 @@
|
|
| 1 |
-
# ingest/cia_reading_room.py
|
| 2 |
-
|
| 3 |
from ingest.generic_public_foia import GenericFOIAAdapter
|
| 4 |
-
import requests
|
| 5 |
|
| 6 |
|
| 7 |
class CIAAdapter(GenericFOIAAdapter):
|
| 8 |
-
source_name = "CIA"
|
| 9 |
-
base_url = "https://www.cia.gov/readingroom/
|
| 10 |
-
|
| 11 |
-
async def search(self, query: str):
|
| 12 |
-
await self._rate_limit()
|
| 13 |
-
# Stub-safe implementation (HF compliant)
|
| 14 |
-
return [{
|
| 15 |
-
"source": self.source_name,
|
| 16 |
-
"title": f"CIA result for {query}",
|
| 17 |
-
"url": "https://www.cia.gov/readingroom/",
|
| 18 |
-
"snippet": "Public CIA FOIA reading room result (stub)"
|
| 19 |
-
}]
|
|
|
|
|
|
|
|
|
|
| 1 |
from ingest.generic_public_foia import GenericFOIAAdapter
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
class CIAAdapter(GenericFOIAAdapter):
|
| 5 |
+
source_name = "CIA Reading Room"
|
| 6 |
+
base_url = "https://www.cia.gov/readingroom/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|