Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Ok, I think it worked. Embarrassingly, in my environment, I was clicked on "help" rather than "variable explorer." This is what is represented: api_key string 1 DEMO KEY docket_id string 1 ED-2018-OCR-0064 docs_per_page int 1 1000 total_docs int 1 32068 Does this mean I can add on

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 7:47 AM Drake Gossi wrote: > > Still having issues: > > 7. import requests > 8. import csv > 9. import time > 10. import sys > 11. api_key = 'PUT API KEY HERE' > 12. docket_id = 'ED-2018-OCR-0064' > 13. total_docs = 32068 > 14. docs_per_page = 1000 > 15. > 16. r = requests.g

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Still having issues: 7. import requests 8. import csv 9. import time 10. import sys 11. api_key = 'PUT API KEY HERE' 12. docket_id = 'ED-2018-OCR-0064' 13. total_docs = 32068 14. docs_per_page = 1000 15. 16. r = requests.get("https://api.data.gov:443/regulations/v3/documents.json

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 6:14 AM Drake Gossi wrote: > > Hi everyone, > > I'm further along than I was last time. I've installed python and am > running this in spyder. This is the code I'm working with: > > import requests > import csv > import time > import sys > api_key = 'my api key' > docket_id

trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Hi everyone, I'm further along than I was last time. I've installed python and am running this in spyder. This is the code I'm working with: import requests import csv import time import sys api_key = 'my api key' docket_id = 'ED-2018-OCR-0064' total_docs = 32068 docs_per_page = 1000 Where the "