Skip to content

Instantly share code, notes, and snippets.

View LindsayYoung's full-sized avatar

Lindsay Young LindsayYoung

View GitHub Profile
@LindsayYoung
LindsayYoung / data_loader_first_pass.py
Created February 6, 2023 19:14
Create models from a data key
"""
Download data from https://facdissem.census.gov/PublicDataDownloads.aspx
Then unzip the files and place the them in data_distro/data_to_load/
Load them with: manage.py public_data_loader
"""
import csv
import re
from os import walk, system
import traceback
@LindsayYoung
LindsayYoung / gist:dc41adb2be0c3aa71321
Created October 22, 2014 18:07
Fomatted obama api endpoint
[
{
"api_version": 0.1
},
{
"pagination": {
"count": "placeholder",
"page": 1,
"per_page": "placeholder"
}
@LindsayYoung
LindsayYoung / gist:564a943f27269f6929ec
Last active August 29, 2015 14:08
Original_obama_api_output
[
{
"affiliated_committees": [],
"cand_id": "H0IL01087",
"cand_sk": 10076990,
"dimcandoffice": [
{
"cand_election_yr": 2000,
"dimoffice": {
"expire_date": null,
@LindsayYoung
LindsayYoung / upcoming_house_example
Created August 6, 2014 19:43
Sample output of the new upcoming house output
{
results: [
{
legislative_day: "2013-04-08",
range: "week",
chamber: "house",
bill_id: "hr1120-113",
scheduled_at: "2014-08-06T18:38:58Z",
congress: 113,
source_type: "house_docs",
@LindsayYoung
LindsayYoung / hearing_example.json
Created July 1, 2014 21:21
Congressional documents example
{
results: [
{
witness_type: "Non-Governmental",
text_preview: " ",
congress: 113,
hearing_title: "To Review the State of the Livestock Industry",
urls: [
{
permalink: "http://unitedstates.sunlightfoundation.com/congress/committee/meetings/house/1021/102156/HHRG-113-AG29-Wstate-SmithM-20140430.pdf",
{
results: [
{
house_hearing_id: 102236,
chamber: "house",
committee_id: "HSWM",
congress: 113,
occurs_at: "2014-05-20T13:30:00Z",
room: "Longworth HOB 1100, Washington, D.C. 20515",
description: "Chairman Brady Announces Hearing on Current Hospital Issues in the Medicare Program",