codeforboston / police-data-trust

A national archive of police data collected by journalists, lawyers, and activists around the country.
https://www.nationalpolicedata.org
MIT License
43 stars 76 forks source link

[FEATURE] Data Insert Logic - Commands #380

Open mikeyavorsky opened 1 month ago

mikeyavorsky commented 1 month ago

Extend the Flask API to read from a .jsonl file of scraped Commands data and insert it into the Postgres DB.

Is your feature request related to a problem? Please describe. As part of our data ETL pipeline, we need to transform data that has been scraped and loaded into an S3 bucket and load it into our database. This feature focuses on loading "commands" (aka employment.unit) data.

Describe the solution you'd like

Additional context Data from a scraper is a requirement for this task. You can download that fixture here.

mikeyavorsky commented 1 month ago

50a.jsonl.zip