session id in session_metadata.py as session_id_meta_data
session id in bills.py as meta_session_id
#!/usr/bin/env python3 | |
import os | |
import zipfile | |
import requests | |
import us | |
# note: The Census download URLs are case-sensitive | |
URL = "https://www2.census.gov/geo/tiger/TIGER_RD18/LAYER/SLD{chamber_uppercase}/tl_rd22_{fips}_sld{chamber}.zip" | |
#!/bin/bash | |
# Take a screenshot of an area of the screen, upload it to dropbox and put the url into the clipboard | |
# Put file in any directory under your dropbox | |
# If it is subfolder, than you need to make them manually | |
FILENAME=~/Dropbox/Screenshots/Screenshot_`date +%Y-%m-%d-%H:%M`.png | |
# Select an area and save the screenshot | |
# you need to instal gnome-screenshot |
# 0=Monday, 1=Tuesday | |
def next_weekday(d, weekday): | |
days_ahead = weekday - d.weekday() | |
if days_ahead <= 0: # Target day already happened this week | |
days_ahead += 7 | |
return d + datetime.timedelta(days_ahead) | |
# US general Elections after 1845 are on the tuesday after the first monday in November | |
def us_election_date(year): | |
if int(year) < 1845: |
{ | |
"id": 8184, | |
"bill": "HB0001", | |
"catchTitle": "General government appropriations.", | |
"sponsor": "Appropriations", | |
"lastAction": "Assigned Chapter Number 134", | |
"lastActionDate": "2018-03-16T00:00:00", | |
"billTitle": "AN ACT to make appropriations for the fiscal biennium commencing July 1, 2018 and ending June 30, 2020; providing definitions; providing for appropriations and transfers of funds for the period of the budget and for the remainder of the current biennium as specified; providing for carryover of certain funds beyond the biennium as specified; providing for employee positions as specified; providing for duties, terms and conditions and other requirements relating to appropriations for the remainder of the current biennium and the period of the budget as specified; providing for position and other budgetary limitations; amending existing law by redirecting revenues and making transfers for the remainder of the current biennium and the period of the budget; imposing a surcharge |