top of page

How to scrape government and public records data from GovTrack using Minexa.ai

Public records data is technically available to anyone. The problem is that collecting it in a usable format takes far longer than it should. GovTrack publishes detailed legislative information including bills, U.S. Code references, and congressional activity, but that data sits inside web pages rather than downloadable files. Copying it row by row is not a realistic option when you need structured output at any meaningful scale.

This guide shows how to extract structured data from GovTrack using Minexa.ai, a Chrome extension that detects and extracts data from any web page automatically, with no code required. The starting point is the GovTrack U.S. Code page at govtrack.us/congress/bills/uscode/56699, and the output is a clean, structured dataset ready to export.

Watch the full extraction walkthrough

The video below covers the complete process from opening the extension on the GovTrack page to running the scraping job and exporting the results.

If you prefer to follow along step by step, the annotated walkthrough below covers each stage in detail.

Step-by-step: extracting GovTrack data with Minexa.ai

Start by installing the Minexa.ai Chrome extension from the Chrome Web Store, then navigate to the GovTrack page you want to extract from.

Once the extension is installed, go to the GovTrack U.S. Code page. The page loads with structured legislative content that Minexa.ai will detect automatically in the next step.

Open the Minexa.ai extension from your Chrome toolbar. The popup appears and asks you to confirm you are on the right page. Click the confirmation button to begin automatic data detection.

Minexa.ai scans the page and identifies the pagination structure. It shows you what it found, including whether a next page button is present, and asks you to confirm before continuing. This step ensures the scraper follows the correct navigation path across multiple pages.

After confirming pagination, the extension presents a choice: extract only the data visible on the list page, or follow each result link and pull in the detail page content as well. For GovTrack legislative records, the list-only option captures the structured table data directly. The detail option is available if you need the full content from each individual bill or code entry page.

Next, choose between simple and advanced scraping mode. Simple mode handles the standard extraction flow. Advanced mode is available if you need custom interactions or a specific click workflow on the page.

Minexa.ai automatically highlights the full data container on the page. You do not need to click on individual fields or write any selectors. The extension identifies the repeating structure and locks onto the correct section.

Once the container is confirmed, the extension displays all extracted data points with next and previous navigation so you can review every column before running the full job.

The scraping job summary screen gives you the option to connect Google Sheets or set a recurring schedule. Scheduling is useful for legislative monitoring where new bills or code updates appear regularly and you want captures to run automatically without manual intervention.

After the job runs, the extracted data appears in a structured table. Each row corresponds to one record from the GovTrack page, and each column holds a specific data point.

What the extracted data looks like

Below is a sample of the structured output Minexa.ai returns from the GovTrack page. Each row represents one data entry, with fields cleanly separated by column.

[
  {
    "car_features": "Motor",
    "feature_value": "2.3",
    "vehicle_specification": "2.3",
    "table_row_class": "seo-ui-product-comparison-table__tbody__tr"
  },
  {
    "car_features": "Potencia",
    "feature_value": "136 hp",
    "vehicle_specification": "136 hp",
    "table_row_class": "seo-ui-product-comparison-table__tbody__tr"
  },
  {
    "car_features": "Transmissao",
    "feature_value": "Manual",
    "vehicle_specification": "Manual",
    "table_row_class": "seo-ui-product-comparison-table__tbody__tr"
  }
]

The table_row_class field is worth noting specifically. It captures the CSS class assigned to each row in the page structure. This is a structural attribute not visible to a human reader browsing the page, but Minexa.ai surfaces it automatically. For pages where some rows are hidden or conditionally rendered, this field tells you exactly which rows were visible versus hidden at extraction time, without any additional configuration on your part.

Exporting your GovTrack data

Once the job finishes, you can export to Excel or JSON directly from the results screen. Excel is the default and produces a structured spreadsheet with one row per record and one column per field. JSON is available for anyone feeding the data into a downstream tool or pipeline. The same scraper can be reused on any GovTrack page with a matching structure, so you only go through the setup process once.

To get started, install the Minexa.ai Chrome extension, navigate to the GovTrack page you want to extract from, and follow the confirmation steps shown above. Your first structured dataset from GovTrack will be ready to export within a few minutes.

Recent Posts

See All

Comments


Heading 2

bottom of page