Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion policyengine_us_data/datasets/cps/census_cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ def generate(self):
col for col in spm_unit_columns if col != "SPM_BBSUBVAL"
]

response = requests.get(url, stream=True)
import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
response = requests.get(url, stream=True, verify=False)
# response = requests.get(url, stream=True)

total_size_in_bytes = int(
response.headers.get("content-length", 200e6)
)
Expand Down Expand Up @@ -302,4 +307,23 @@ class CensusCPS_2018(CensusCPS):
"PRCITSHP",
"NOW_GRP",
"POCCU2",
"PEINUSYR",
"MCARE",
"PEN_SC1",
"PEN_SC2",
"RESNSS1",
"RESNSS2",
"IHSFLG",
"CAID",
"CHAMPVA",
"PEIO1COW",
"A_MJOCC",
"SS_YN",
"PEAFEVER",
"SSI_YN",
"RESNSSI1",
"RESNSSI2",
"PENATVTY",
"PEIOOCC",
"MIL",
]
Loading
Loading