Book Image

Hands-On Web Scraping with Python

By : Anish Chapagain
Book Image

Hands-On Web Scraping with Python

By: Anish Chapagain

Overview of this book

Web scraping is an essential technique used in many organizations to gather valuable data from web pages. This book will enable you to delve into web scraping techniques and methodologies. The book will introduce you to the fundamental concepts of web scraping techniques and how they can be applied to multiple sets of web pages. You'll use powerful libraries from the Python ecosystem such as Scrapy, lxml, pyquery, and bs4 to carry out web scraping operations. You will then get up to speed with simple to intermediate scraping operations such as identifying information from web pages and using patterns or attributes to retrieve information. This book adopts a practical approach to web scraping concepts and tools, guiding you through a series of use cases and showing you how to use the best tools and techniques to efficiently scrape web pages. You'll even cover the use of other popular web scraping tools, such as Selenium, Regex, and web-based APIs. By the end of this book, you will have learned how to efficiently scrape the web using different techniques with Python and other popular tools.
Table of Contents (16 chapters)
Free Chapter
Section 1: Introduction to Web Scraping
Section 2: Beginning Web Scraping
Section 3: Advanced Concepts
Section 4: Conclusion

What's next?

Web scraping is dynamic, demanding, and also a challenging task. We need to obey the legal perspective, which is presented on a website's Terms of Services (ToS) and Privacy Policy before carrying this task forward. Python programming, with its supportive nature, easy syntax, short and readable code formation, and the availability of libraries and tools is one of the best languages to be used in web scraping.

Still, the challenges are there and general scripts might not be able to fulfill the demand that exists. Sometimes, a scraping task might be for a huge volume, and personal PCs or laptops won't be a place worth implementing when you consider time, machine resources, and more. There are a number of features and procedures that can make a scraping task more complicated and challenging. Let's go over some of them:

  • The adoption of growing web...