Edits to Rebecca Koeser's script to generate dataset from DH Q&A archive (preliminary)
✓ Published0🌍 Public
ZZoeLeBlanc
Last edited May 3, 2020
Created on May 3, 2020
This example shows a Python script that parses the Digital Humanities Q&A archive into a structured dataset, extracting questions, responses, authors, tags, dates, and best-answer flags from static HTML pages and linked RSS feeds. The script uses BeautifulSoup to locate page elements and pandas to organize post metadata into merged DataFrames, while the archive's source repository provides the raw HTML files. It also demonstrates a data-cleaning step that removes social-media widgets from post content before saving the final dataset.
AI-generated description