Closed gordonje closed 5 years ago
Should accept a call sign and service type (i.e., tv, am or fm) as positional arguments.
Call get /{serviceType}/facility/id/{entityID}.json to get the facility's details (especially, the entity_id(.
get /{serviceType}/facility/id/{entityID}.json
entity_id
Then call the folder/path endpoint with Political File keyword, and walk the directory structure, storing any Folder and File instances.
folder/path
Political File
Folder
File
Some useful docs: https://docs.djangoproject.com/en/2.2/howto/custom-management-commands/
Should accept a call sign and service type (i.e., tv, am or fm) as positional arguments.
Call
get /{serviceType}/facility/id/{entityID}.json
to get the facility's details (especially, theentity_id
(.Then call the
folder/path
endpoint withPolitical File
keyword, and walk the directory structure, storing anyFolder
andFile
instances.