Python Web Scraping Cookbook: Over 90 proven recipes to get you scraping with Python,micro services,Docker and AWS
Authors: Michael Heydt
ISBN-10: 1787285219
ISBN-13: 9781787285217
Publication Date 出版日期: 2018-02-09
Print Length 页数: 364 pages
Publisher finelybook 出版社: Packt
Book Description
By finelybook
Untangle your web scraping complexities and access web data with ease using Python scripts
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
contents
1 Getting Started with Scraping
2 Data Acquisition and Extraction
3 Processing Data
4 Working with Images,Audio,and other Assets
5 Scraping – Code of Conduct
6 Scraping Challenges and Solutions
7 Text Wrangling and Analysis
8 Searching,Mining and Visualizing Data
9 Creating a Simple Data API
10 Creating Scraper Microservices with Docker
11 Making the Scraper as a Service Real