GodsDevProject commited on
Commit
1528fc6
·
verified ·
1 Parent(s): 075855b

Delete dod_reading_room_live.py

Browse files
Files changed (1) hide show
  1. dod_reading_room_live.py +0 -20
dod_reading_room_live.py DELETED
@@ -1,20 +0,0 @@
1
- import httpx
2
- from ingest.generic_public_foia import GenericFOIAAdapter
3
-
4
- class DoDAdapter(GenericFOIAAdapter):
5
- name = "DoD FOIA Reading Room"
6
- rate_limit = 1
7
- robots_respected = True
8
- base_url = "https://www.esd.whs.mil/FOIA/Reading-Room/"
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={"search": query})
13
- if r.status_code != 200:
14
- return []
15
- return [{
16
- "source": "DoD FOIA Reading Room",
17
- "query": query,
18
- "url": str(r.url),
19
- "snippet": "Public DoD FOIA reading room page"
20
- }]