Practical Web Scraping for Data Science: Best Practices and Examples with Python Front Cover

Practical Web Scraping for Data Science: Best Practices and Examples with Python

  • Length: 306 pages
  • Edition: 1st ed.
  • Publisher:
  • Publication Date: 2018-06-10
  • ISBN-10: 1484235819
  • ISBN-13: 9781484235812
  • Sales Rank: #618653 (See Top 100 Books)
Description

This book provides a complete and modern guide to web scraping, using Python as the programming language, without glossing over important details or best practices. Written with a data science audience in mind, the book explores both scraping and the larger context of web technologies in which it operates, to ensure full understanding. The authors recommend web scraping as a powerful tool for any data scientist’s arsenal, as many data science projects start by obtaining an appropriate data set.

Starting with a brief overview on scraping and real-life use cases, the authors explore the core concepts of HTTP, HTML, and CSS to provide a solid foundation. Along with a quick Python primer, they cover Selenium for JavaScript-heavy sites, and web crawling in detail. The book finishes with a recap of best practices and a collection of examples that bring together everything you’ve learned and illustrate various data science use cases.

What You’ll Learn

  • Leverage well-established best practices and commonly-used Python packages
  • Handle today’s web, including JavaScript, cookies, and common web scraping mitigation techniques
  • Understand the managerial and legal concerns regarding web scraping

Who This Book is For

A data science oriented audience that is probably already familiar with Python or another programming language or analytical toolkit (R, SAS, SPSS, etc). Students or instructors in university courses may also benefit. Readers unfamiliar with Python will appreciate a quick Python primer in chapter 1 to catch up with the basics and provide pointers to other guides as well.

Table of Contents

Part I: Web Scraping Basics
Chapter 1: Introduction
Chapter 2: The Web Speaks HTTP
Chapter 3: Stirring the HTML and CSS Soup

Part II: Advanced Web Scraping
Chapter 4: Delving Deeper in HTTP
Chapter 5: Dealing with JavaScript
Chapter 6: From Web Scraping to Web Crawling

Part III: Managerial Concerns and Best Practices
Chapter 7: Managerial and Legal Concerns
Chapter 8: Closing Topics
Chapter 9: Examples

To access the link, solve the captcha.