Python Web Scraping Cookbook: Over 90 proven recipes to get you scraping with Python, micro services, Docker and AWS
暫譯: Python 網頁爬蟲食譜:超過 90 種經驗豐富的食譜,教你使用 Python、微服務、Docker 和 AWS 進行爬蟲作業
Michael Heydt
- 出版商: Packt Publishing
- 出版日期: 2018-02-09
- 售價: $1,830
- 貴賓價: 9.5 折 $1,739
- 語言: 英文
- 頁數: 364
- 裝訂: Paperback
- ISBN: 1787285219
- ISBN-13: 9781787285217
-
相關分類:
Web-crawler 網路爬蟲、Python、Docker、Amazon Web Services
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$520$442
相關主題
商品描述
Untangle your web scraping complexities and access web data with ease using Python scripts
Key Features
- Hands-on recipes for advancing your web scraping skills to expert level.
- One-Stop Solution Guide to address complex and challenging web scraping tasks using Python.
- Understand the web page structure and collect meaningful data from the website with ease
Book Description
Python Web Scraping Cookbook is a solution-focused book that will teach you techniques to develop high-performance scrapers and deal with crawlers, sitemaps, forms automation,
Ajax-based sites, caches, and more.You'll explore a number of real-world scenarios where every part of the development/product life cycle will be fully covered. You will not only develop the skills to design and develop reliable, performance data flows, but also deploy your codebase to an AWS. If you are involved in software engineering, product development, or data mining (or are interested in building data-driven products), you will find this book useful as each recipe has a clear purpose and objective.
Right from extracting data from the websites to writing a sophisticated web crawler, the book's independent recipes will be a godsend on the job. This book covers Python libraries, requests, and BeautifulSoup. You will learn about crawling, web spidering, working with AJAX websites, paginated items, and more. You will also learn to tackle problems such as 403 errors, working with proxy, scraping images, LXML, and more.
By the end of this book, you will be able to scrape websites more efficiently and to be able to deploy and operate your scraper in the cloud.
What you will learn
- Use a wide variety of tools to scrape any website and data-including BeautifulSoup, Scrapy, Selenium, and many more
- Master expression languages such as XPath, CSS, and regular expressions to extract web data
- Deal with scraping traps such as hidden form fields, throttling, pagination, and different status codes
- Build robust scraping pipelines with SQS and RabbitMQ
- Scrape assets such as images media and know what to do when Scraper fails to run
- Explore ETL techniques of build a customized crawler, parser, and convert structured and unstructured data from websites
- Deploy and run your scraper-as-aservice in AWS Elastic Container Service
Who This Book Is For
This book is ideal for Python programmers, web administrators, security professionals or someone who wants to perform web analytics would find this book relevant and useful. Familiarity with Python and basic understanding of web scraping would be useful to take full advantage of this book.
Table of Contents
- Getting started with Scraping
- Data acquisition and extraction
- Processing Data
- Working with images, audio and other assets
- Scraping - Code of Conduct
- Scraping Challenges and Solutions
- Text Wrangling and Analysis
- Searching, mining and visualizing data
- Working with an API and Providing a Data API
- Creating scraper microservices with Docker
- A complete real world example
商品描述(中文翻譯)
**解開您的網頁擷取複雜性,輕鬆使用 Python 腳本訪問網頁數據**
#### 主要特點
- 實用食譜,幫助您將網頁擷取技能提升至專家級別。
- 一站式解決方案指南,針對使用 Python 的複雜和具挑戰性的網頁擷取任務。
- 輕鬆理解網頁結構,並從網站收集有意義的數據。
#### 書籍描述
《Python 網頁擷取食譜》是一本以解決方案為導向的書籍,將教您開發高效能擷取器的技術,並處理爬蟲、網站地圖、表單自動化、Ajax 基於的網站、快取等問題。您將探索多個真實世界的場景,涵蓋開發/產品生命週期的每個部分。您不僅會培養設計和開發可靠、高效數據流的技能,還能將您的代碼基礎部署到 AWS。如果您從事軟體工程、產品開發或數據挖掘(或對構建數據驅動的產品感興趣),這本書將對您非常有用,因為每個食譜都有明確的目的和目標。
從從網站提取數據到編寫複雜的網頁爬蟲,這本書的獨立食譜將在工作中大有幫助。本書涵蓋了 Python 庫、requests 和 BeautifulSoup。您將學習爬蟲、網頁蜘蛛、處理 AJAX 網站、分頁項目等內容。您還將學會解決如 403 錯誤、使用代理、擷取圖片、LXML 等問題。
在本書結束時,您將能夠更有效地擷取網站數據,並能在雲端部署和運行您的擷取器。
#### 您將學到什麼
- 使用各種工具擷取任何網站和數據,包括 BeautifulSoup、Scrapy、Selenium 等等。
- 精通表達式語言,如 XPath、CSS 和正則表達式,以提取網頁數據。
- 處理擷取陷阱,如隱藏表單欄位、限速、分頁和不同的狀態碼。
- 使用 SQS 和 RabbitMQ 構建穩健的擷取管道。
- 擷取資產,如圖片媒體,並知道當擷取器無法運行時該怎麼辦。
- 探索 ETL 技術,構建自定義爬蟲、解析器,並從網站轉換結構化和非結構化數據。
- 在 AWS Elastic Container Service 中部署和運行您的擷取器作為服務。
#### 本書適合誰
本書非常適合 Python 程式設計師、網頁管理員、安全專業人員或希望進行網頁分析的人。熟悉 Python 和基本的網頁擷取知識將有助於充分利用本書。
#### 目錄
1. 開始擷取
2. 數據獲取與提取
3. 數據處理
4. 處理圖片、音頻和其他資產
5. 擷取 - 行為準則
6. 擷取挑戰與解決方案
7. 文本處理與分析
8. 搜索、挖掘與可視化數據
9. 使用 API 和提供數據 API
10. 使用 Docker 創建擷取微服務
11. 一個完整的真實世界範例