Commit
•
69ddfd8
1
Parent(s):
1fc1aa9
removing api key info
Browse files- api_call_mod.py +2 -2
api_call_mod.py
CHANGED
@@ -5,7 +5,7 @@ def get_docket_ids(search_term):
|
|
5 |
url = f"https://api.regulations.gov/v4/dockets"
|
6 |
params = {
|
7 |
'filter[searchTerm]': search_term,
|
8 |
-
'api_key': "
|
9 |
}
|
10 |
response = requests.get(url, params=params)
|
11 |
if response.status_code == 200:
|
@@ -17,7 +17,7 @@ def get_docket_ids(search_term):
|
|
17 |
return f"Error: {response.status_code}"
|
18 |
|
19 |
class RegulationsDataFetcher:
|
20 |
-
API_KEY = "
|
21 |
BASE_COMMENT_URL = 'https://api.regulations.gov/v4/comments'
|
22 |
BASE_DOCKET_URL = 'https://api.regulations.gov/v4/dockets/'
|
23 |
HEADERS = {
|
|
|
5 |
url = f"https://api.regulations.gov/v4/dockets"
|
6 |
params = {
|
7 |
'filter[searchTerm]': search_term,
|
8 |
+
'api_key': "your_api_key"
|
9 |
}
|
10 |
response = requests.get(url, params=params)
|
11 |
if response.status_code == 200:
|
|
|
17 |
return f"Error: {response.status_code}"
|
18 |
|
19 |
class RegulationsDataFetcher:
|
20 |
+
API_KEY = "your_api_key"
|
21 |
BASE_COMMENT_URL = 'https://api.regulations.gov/v4/comments'
|
22 |
BASE_DOCKET_URL = 'https://api.regulations.gov/v4/dockets/'
|
23 |
HEADERS = {
|