Downloading Bill Information from US Congress Website.

scrapeBill(url, progress = TRUE)

Arguments

url

A character object of Bill Summary Page URL (e.g., https://www.congress.gov/bill/109th-congress/house-bill/247)

progress

If TRUE(default), show progress bar for the processing of multiple bills.

Value

A (or a list of) scrapeBill object(s) that contains two xml_document objects.

  • info: contains meta information of the bill

  • text: contains full texts of the bill

See also

Examples

tgturl <- "https://www.congress.gov/bill/109th-congress/house-bill/247" bill247 <- scrapeBill(tgturl)