All functions |
|
---|---|
Read all text from a file |
|
Get years for provided congresses |
|
An empty dataframe to to use in place of failed scrape |
|
A helper function to extract speakers in the Congressional Record using a regular expression to match how the Record notes speakers. |
|
The main function to get metadata for the Congressional Record for a given date and section (e.g., "house-section" or "senate-section"). This metadata can then be provided to `get_cr_htm()` to download htm files for the desired sections. |
|
A function to download htm files of the Congressional Record for a given url address) |
|
Extract header text from congressional record htm files |
|
Pull sentences that mention given keywords from text files |
|
A wrapper for `creat.dir()` if directory does not exist. |
|
A helper function to parse files with more than one speaker |
|
The main function to parse .htm Congressional Record files in a directory by speaker and save parsed .txt files in a parallel directory |
|
Map the `parse()` function to a vector of text. |
|
Write txt files parsed by legislator using `extractMemberName() from the `legislators` R package |