Closely examine website scraping and data processing: the technique of extracting data from websites in a format suitable for further analysis. You'll review which tools to use, and compare their features and efficiency. Focusing on BeautifulSoup4 and Scrapy, this concise, focused book highlights common problems and suggests solutions that readers can implement on their own.
Website Scraping with Python starts by introducing and installing the scraping tools and explaining the features of the full application that readers will build throughout the book. You'll see how to use BeautifulSoup4 and Scrapy individually or together to achieve the desired results. Because many sites use JavaScript, you'll also employ Selenium with a browser emulator to render these sites and make them ready for scraping.
By the end of this book, you'll have a complete scraping application to use and rewrite to suit your needs. As a bonus, the author shows you options of how to deploy your spiders into the Cloud to leverage your computer from long-running scraping tasks.
What You'll Learn
Install and implement scraping tools individually and together
Run spiders to crawl websites for data from the cloud
Work with emulators and drivers to extract data from scripted sites
Who This Book Is For
Readers with some previous Python and software development experience, and an interest in website scraping.
Author(s): Gábor László Hajba
Edition: 1
Publisher: Apress
Year: 2018
Language: English
Commentary: True PDF
Pages: 223
Tags: Cloud Computing; Python; JavaScript; Relational Databases; NoSQL; JSON; PythonAnywhere; Web Scraping; BeautifulSoup; Scrapy; Selenium; HTML; CSV
Front Matter ....Pages i-xviii
Getting Started (Gábor László Hajba)....Pages 1-18
Enter the Requirements (Gábor László Hajba)....Pages 19-39
Using Beautiful Soup (Gábor László Hajba)....Pages 41-96
Using Scrapy (Gábor László Hajba)....Pages 97-167
Handling JavaScript (Gábor László Hajba)....Pages 169-192
Website Scraping in the Cloud (Gábor László Hajba)....Pages 193-217
Back Matter ....Pages 219-223