WikiHist.html: English Wikipedia's Full Revision History in HTML Format


  • Blagoj Mitrevski Ecole Polytechnique Fédérale de Lausanne
  • Tiziano Piccardi Ecole Polytechnique Fédérale de Lausanne
  • Robert West Ecole Polytechnique Fédérale de Lausanne


Wikipedia is written in the wikitext markup language. When serving content, the MediaWiki software that powers Wikipedia parses wikitext to HTML, thereby inserting additional content by expanding macros (templates and modules). Hence, researchers who intend to analyze Wikipedia as seen by its readers should work with HTML, rather than wikitext. Since Wikipedia's revision history is publicly available exclusively in wikitext format, researchers have had to produce HTML themselves, typically by using Wikipedia's REST API for ad-hoc wikitext-to-HTML parsing. This approach, however, (1) does not scale to very large amounts of data and (2) does not correctly expand macros in historical article revisions. We solve these problems by developing a parallelized architecture for parsing massive amounts of wikitext using local instances of MediaWiki, enhanced with the capacity of correct historical macro expansion. By deploying our system, we produce and release WikiHist.html, English Wikipedia's full revision history in HTML format. We highlight the advantages of WikiHist.html over raw wikitext in an empirical analysis of Wikipedia's hyperlinks, showing that over half of the wiki links present in HTML are missing from raw wikitext, and that the missing links are important for user navigation. Data and code are publicly available at




How to Cite

Mitrevski, B., Piccardi, T., & West, R. (2020). WikiHist.html: English Wikipedia’s Full Revision History in HTML Format. Proceedings of the International AAAI Conference on Web and Social Media, 14(1), 878-884. Retrieved from