Published Mar 16, 2022

Episode 503: Diarmuid McDonnell on Web Scraping

Explore the intricate world of web scraping with Diarmuid McDonnell as he delves into legal nuances, tool selection, and the transformative impact on social science research, emphasizing its role in nonprofit sector insights and policy-making, all while advocating for educational initiatives to break down barriers for non-programmers.
Episode Highlights
Software Engineering Radio - the podcast for professional software developers logo

Popular Clips

Episode Highlights

  • Legal Aspects

    discusses the legal intricacies of web scraping, emphasizing the importance of understanding copyright laws and terms of service. He explains that while web scraping isn't explicitly illegal in many jurisdictions, including the UK, the real challenge lies in the restrictions on data usage post-scraping 1. Websites often have terms of service that prohibit automated data collection, and even if scraping is technically allowed, the use of the data can be restricted. Diarmuid highlights the detective work involved in checking terms and conditions before scraping, noting that public pages and those behind authentication have different levels of access 2.

       

    Tool Selection

    In the realm of web scraping, shares his preference for Python, utilizing tools like Requests and Beautiful Soup for their efficiency in handling web data. He contrasts these with Scrapy, a more comprehensive framework that he finds unnecessary for his needs, though it is popular among his colleagues 3. Diarmuid's choice of Python was influenced by his academic environment, where it was recommended for handling large-scale unstructured data 4. He emphasizes the importance of selecting the right tools for specific tasks, rather than relying on a single tool for all web scraping activities 5.

       

    Overcoming Challenges

    Addressing web scraping challenges, describes his experiential learning approach to writing effective code. He adapts solutions to specific website challenges, such as cycling through public proxies to overcome request limits 6. Data quality is another concern, with frequent website updates necessitating regular checks and adjustments to scrapers. Diarmuid notes that while data quality issues like duplicates are manageable, the unpredictability of website updates requires constant vigilance 7.

Related Episodes