Practical Web Scraping for Data Science: Best Practices and Examples with Python (數據科學實用網頁擷取:最佳實踐與 Python 範例)

Seppe vanden Broucke

買這商品的人也買了...

相關主題

商品描述

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.

商品描述(中文翻譯)

本書提供了一本完整且現代化的網頁爬蟲指南,以Python作為程式語言,並且不掩蓋重要細節或最佳實踐。作者以資料科學的觀眾為目標,探討了網頁爬蟲以及其所運作的網頁技術的整體背景,以確保完全理解。作者推薦網頁爬蟲作為任何資料科學家工具箱中的強大工具,因為許多資料科學專案都是從獲取適當的資料集開始。

從簡要概述爬蟲和實際應用案例開始,作者探討了HTTP、HTML和CSS的核心概念,以提供堅實的基礎。除了快速介紹Python之外,他們還詳細介紹了用於處理JavaScript-heavy網站的Selenium和網頁爬行。本書以最佳實踐的總結和一系列範例結束,這些範例將您所學的一切結合起來,並展示了各種資料科學應用案例。

您將學到什麼:
- 利用成熟的最佳實踐和常用的Python套件
- 處理當今的網頁,包括JavaScript、cookies和常見的網頁爬蟲防護技術
- 了解管理和法律上的網頁爬蟲相關問題

本書適合的讀者:
- 面向資料科學的觀眾,可能已經熟悉Python或其他程式語言或分析工具(R、SAS、SPSS等)
- 大學課程中的學生或教師也可能受益
- 對Python不熟悉的讀者將會在第一章中受益於快速的Python入門,以便迅速掌握基礎知識並提供其他指南的指引。