Skip to content

Scrapes Congressional Hearings from the govinfo API

License

Notifications You must be signed in to change notification settings

datamade/govinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GovInfo

A Python wrapper for the govinfo API.

You'll need an API key from https://api.data.gov/

Example

import datetime

import govinfo
import pytz

scraper = govinfo.GovInfo(api_key='YOUR_SECRET_API_KEY')

# Prints out all the different types of collections available
# in the govinfo API
print(scraper.collections())

# Iterate through every congressional hearing
#
# For congressional hearings you need a specify a start
# date time with a timezone
start_time = datetime.datetime(1990, 1, 1, 0, 0, tzinfo=pytz.utc)

for hearing in scraper.congressional_hearings(start_time):
    print(hearing)

About

Scrapes Congressional Hearings from the govinfo API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages