GodsDevProject commited on
Commit
2dd7b26
·
verified ·
1 Parent(s): 12ecc68

Delete cia_reading_room.py

Browse files
Files changed (1) hide show
  1. cia_reading_room.py +0 -21
cia_reading_room.py DELETED
@@ -1,21 +0,0 @@
1
- import httpx
2
- from ingest.generic_public_foia import GenericFOIAAdapter
3
-
4
- class CIAAdapter(GenericFOIAAdapter):
5
- name = "CIA"
6
- rate_limit = 1
7
- robots_respected = True
8
- base_url = "https://www.cia.gov/readingroom/search/site/"
9
-
10
- async def search(self, query: str):
11
- async with httpx.AsyncClient(timeout=10) as client:
12
- r = await client.get(self.base_url, params={"query": query})
13
- if r.status_code != 200:
14
- return []
15
- # Minimal safe parse: return page-level hit
16
- return [{
17
- "source": "CIA FOIA Reading Room",
18
- "query": query,
19
- "url": str(r.url),
20
- "snippet": "Public FOIA search result page"
21
- }]