Methodology

Locating Websites

Website location methodology is designed to mirror the standard methods employed by interested citizens in searching for candidate information. Research assistants conducted Google searches to identify candidate campaign websites. In order to maintain consistency across data collection efforts, research assistants logged out of google accounts, disable history based search parameters, disabled popular searches, and turned search customization off. The search employed the phrase “[Name] [State] [Chamber] [Year]”. Research assistants looked through first 20 returns for individual websites. Ballotpedia.org and any official Facebook.com pages that appeared in the first 20 Google returns were also checked. Official state websites (.gov), broad state-party websites, and fundraising sites like ActBlue and WinRed were all excluded from the list.

Archiving/Preserving Websites

Websites are archived as .WARC files using either the Archive-It platform or a freestanding Heratrix crawler. The Heratrix crawler is the Internet Archives open-source web-archiving package. Websites are archived once in the three weeks prior to the election day. In 2022-2024, primary websites are archived once more in the three weeks prior to the state’s specific primary date. The crawler is programmed to exclude websites whose source code explicitly blocks crawling and preservation. Preserved WARC files are processed to extract key metadata,

Extracting Website Components

Page text has been extracted through two mechanisms. First, the Archive-It platform offers text extraction through their ARCH research support software. In addition, and to maintain consistent extraction mechanisms independent of proprietary software, python is used to extract WARC file components and separate HTML documents that contain critical website text. Python’s Beautiful Soup package is used to extract raw text from HTML code, and that raw text is stored in a separate .CSV file. Image files are also extracted and processed separately and available for analysis.

css.php