Since we're implementing Miami's version of Councilmatic we are also working with the scraper API in development. There have been times when we wanted to check what the API is pulling in but with no way to log the URLs that can be difficult. Maybe in loaddata.py, something like:
if DEBUG:
print(full_url) # before requests.get(url) is invoked
Since we're implementing Miami's version of Councilmatic we are also working with the scraper API in development. There have been times when we wanted to check what the API is pulling in but with no way to log the URLs that can be difficult. Maybe in
loaddata.py
, something like: