Computational methods are transforming research practice across the disciplines. In this one-day course you will learn how to apply computational methods for the collection and management of data stored on the web. Using Python and R, you will develop skills in collecting data from websites and online databases (APIs); handle a mixture of structured (JSON) and unstructured (raw text) data; and explore how LLMs can support these activities.
This course is suitable for social science researchers from any methodological background (e.g., qualitative, quantitative) and who are new to the use of computational methods in their research. Participants are not expected to have any experience of using Python or R before attending this course.
This repository houses the materials underpinning the one-day course run by Dr Diarmuid McDonnell, Braw Data Ltd / Gradel Institute of Charity, University of Oxford. The course was first run in February 2026.
| Time | Session | Format |
|---|---|---|
| 10:00-10:30 | Lecture 1: Welcome & How the Web Works | Lecture |
| 10:30-11:15 | Practical 1: Web Scraping | Colab notebook |
| 11:15-11:30 | Break | |
| 11:30-11:45 | Lecture 2: What Are APIs? | Lecture |
| 11:45-12:45 | Practical 2: UK Police API Deep-Dive | Colab notebook |
| 12:45-13:30 | Lunch | |
| 13:30-13:45 | Lecture 3: API Landscape Survey | Lecture |
| 13:45-14:45 | Practical 3: API Challenge | Colab notebook |
| 14:45-15:00 | Break | |
| 15:00-15:15 | Lecture 4: LLMs as Coding Assistants | Lecture |
| 15:15-15:50 | Practical 4: LLM Showdown | Colab notebook |
| 15:50-16:00 | Wrap-up & Q&A |
The practicals contain Python and R code for you to execute.
You can complete the lessons online without the need to install or download anything. Simply click on the relevant link for each lesson below.
You need a Google account to be able to run the code notebooks. Once you have a Google account then please click the Open in Colab link.
- Practical 1: Web Scraping
- Practical 2: UK Police API
- Practical 3: API Challenge
- Practical 4: LLM Showdown
- Practical 1: Web Scraping
- Practical 2: UK Police API
- Practical 3: API Challenge
- Practical 4: LLM Showdown
- Lecture 1: Welcome & How the Web Works
- Lecture 2: What Are APIs?
- Lecture 3: API Landscape Survey
- Lecture 4: LLMs as Coding Assistants
- installation - Guidance on installing software on your own machines.
- reading - Lists of interesting and relevant reading materials.
Dr Diarmuid McDonnell Director, Braw Data Ltd Visiting Fellow, Gradel Institute of Charity, University of Oxford
I am grateful to the Scottish Graduate School of Social Sciences (SGSSS) for funding and organising this course.
These materials are licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0).
Please do not hesitate to get in contact if you have queries, criticisms or ideas regarding these materials: Dr Diarmuid McDonnell
