Humanities and social science graduate students with no programming background who want to analyze text, social media or map data with Python can look at Melanie Walsh's open textbook Introduction to Cultural Analytics & Python. This article follows the textbook's home page, its Spring 2021 course schedule and its page on interacting with the book, and I also read the opening notices of the Twitter data overview page and the Reddit data page, all accessed on 25 November 2026. I have not studied the book from the start; I only read these pages in a browser and did not run any code.

The author and where it comes from

The home page says the site hosts an online textbook designed by Melanie Walsh and powered by Jupyter Book, an introduction to Python for people interested in the humanities and social sciences; the book shows how Python can be used to study cultural materials such as song lyrics, short stories, newspaper articles, tweets, Reddit posts and film screenplays, and introduces methods such as web scraping, APIs, topic modeling, Named Entity Recognition, network analysis and mapping.[1] The materials were originally created to support the undergraduate course Introduction to Cultural Analytics: Data, Computation & Culture, which the page says was taught at Cornell University and the University of Washington; the page does not say the book is an official online course of either university, and this article does not say so.[1] The page defines cultural analytics as the study of culture with computational methods; the suggested citation is Melanie Walsh, Introduction to Cultural Analytics & Python, Version 1 (2021), DOI 10.5281/zenodo.4411250, and the footer says it won Best DH Training Material in 2021.[1] The acknowledgments say the course was inspired by materials from Lauren Klein, David Mimno and Allison Parrish, among others, and that the section Working with Languages Beyond English was co-authored with Quinn Dombrowski.[1]

The eight chapters

The sidebar contents has eight chapters. Chapter 1 is the command line; chapter 2 is Python basics, covering installing Python and JupyterLab, using Jupyter notebooks, variables, data types, string methods, files and character encoding, comparisons and conditionals, lists and loops, dictionaries, functions and common errors, and ending with a page on what is not covered; chapter 3 is data analysis with Pandas, four pages including merging datasets.[1] Chapter 4 is data collection, beginning with the legal and ethical considerations of users' data, then web scraping, Git and GitHub and APIs, with song lyrics, Twitter and Reddit data as examples.[1] Chapter 5 is text analysis, with text pre-processing, named entity recognition and part-of-speech tagging for Chinese, Danish, Portuguese, Russian and Spanish, as well as TF-IDF, sentiment analysis, topic modeling (one route using MALLET and one using Tomotopy that needs no Java), named entity recognition and part-of-speech tagging.[1] Chapter 6 is network analysis with NetworkX and Bokeh; chapter 7 is mapping, with geocoding, custom map backgrounds and publishing a map on the web; chapter 8 is LLMs and AI, with local LLMs, word and document embeddings and text classification with LLMs.[1] The contents end with a datasets page and extra materials such as Jupyter tips and tricks.[1]

NER example: John tagged as person, New York as place

Figure: A simple example of named entity recognition, in which John in the sentence John came from New York is tagged PER and New York is tagged LOC, matching the named entity recognition taught in chapter 5, not a screenshot of the textbook. Arthur-Kunst, Wikimedia Commons[6]

How to use it for self-study

The home page says the pages contain Python code that can be opened and run in a web browser without prior installation or configuration, using the launch button in the top right corner.[1] The page on interacting with the book says it was made with Jupyter Book and that most pages can be opened in the cloud: hover over the rocket icon and click Binder to open a cloud version of the same page, which may take a few minutes to load; you can also download a page as an .ipynb file, which needs Jupyter installed on your own computer, or as a PDF, and reveal the hidden outputs and code with Click to Show.[3] You can then pace yourself against the Spring 2021 course schedule. It runs for 14 weeks: week 1 is the command line and setting up Python and GitHub (installing Anaconda, GitHub Desktop and VSCode), followed in turn by Python basics, Pandas, web scraping and APIs, text analysis, network analysis and mapping, with the last two weeks on making arguments and telling stories with data; each week also has critical and cultural readings and assignments beside the technical reading, and the final project is due on 21 May.[2] The schedule is a teaching plan, the page gives no timetable for self-study and this article does not set one; chapter 8 and the non-English language material do not appear in it.[2]

Chapters that cannot be followed as written, plus license and citation

Some chapters depend on outside interfaces. The Important Update on the Twitter data overview page says that in 2023 Twitter (now X) dramatically restricted access to its API, effectively ending free academic research access, that the Academic Research track is no longer available, and that the lessons were written when the API was accessible and are kept for reference, with code examples that will no longer work without a paid API subscription; it suggests the Bluesky API or platform-specific archives as alternatives.[4] The Important Update on the Reddit data page says that in 2023 Reddit ended third-party access to the Pushshift API and that the PSAW library used in the lesson no longer functions, so the code does not work as written; it suggests PRAW and says you need a free Reddit account and a registered application to get API credentials, and that PRAW does not give the historical archive access Pushshift once offered.[5] I read only the opening notice of these two pages, not the lessons after it, and I did not check whether other pages that rely on outside interfaces, such as the lyrics API, work now, so I cannot say these chapters can simply be followed.[4][5] This is an open textbook; the pages say nothing about registration, fees or certificates, and it is not a course that is running now; the author says she is proud to make the book freely available, and the footer says it is licensed under CC BY-NC-SA 4.0.[1]

References

  1. Melanie Walsh. Introduction to Cultural Analytics & Python, accessed 25 November 2026.
  2. Melanie Walsh. Course Schedule, accessed 25 November 2026.
  3. Melanie Walsh. How to Interact With This Book, accessed 25 November 2026.
  4. Melanie Walsh. Twitter Data, accessed 25 November 2026.
  5. Melanie Walsh. Reddit Data Collection and Analysis with PSAW, accessed 25 November 2026.
  6. Arthur-Kunst. Simple NER example.png, Wikimedia Commons, CC BY-SA 4.0.