rji-futures-lab / django-fcc-opif

For extracting and analyzing data from the FCC Public Inspection files
0 stars 0 forks source link

Define a getpoliticalfilesdata management cmd #7

Closed gordonje closed 5 years ago

gordonje commented 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(.

Then call the folder/path endpoint with Political File keyword, and walk the directory structure, storing any Folder and File instances.

gordonje commented 5 years ago

Some useful docs: https://docs.djangoproject.com/en/2.2/howto/custom-management-commands/