Web scraping project – Harvard University
Large-scale web scraping project that extracted about 300,000 records and organized them into a database to support a PhD dissertation at Harvard University.
- Role
- Python Developer (part-time)
- Client
- Department of Government, Harvard University
- Year
- 2019

The problem
A PhD dissertation at Harvard University's Department of Government needed a large-scale dataset that wasn't available in any downloadable format.
The solution
I built a Python web scraping project with Requests, Beautiful Soup and PostgreSQL.
To extract the data reliably I used IP, user agent and header rotation, rate limiting, undocumented API consumption and regular expressions.
The result
I extracted and organized about 300,000 records into a database ready for the dissertation's analysis, between January and July 2019. I received a letter of recommendation from the department.
Technologies
- Web Scraping
- Python
- Request
- Beautiful Soup
- PostgreSQL