Language
  • Python 3
Reading time
  • Approximately 25 days
What you will learn
  • Database
  • Web Scraping
Author
  • Ryan Mitchell
Published
  • 2 years, 2 months ago
Packages you will be introduced to
  • beautifulsoup4
  • requests
  • scrapy
Book cover of Web Scraping with Python: Collecting Data from the Modern Web by Ryan Mitchell

Official description

Learn web scraping and crawling techniques to access unlimited data from any web source in any format. With this practical guide, you’ll learn how to use Python scripts and web APIs to gather and process data from thousands—or even millions—of web pages at once.

Ideal for programmers, security professionals, and web administrators familiar with Python, this book not only teaches basic web scraping mechanics, but also delves into more advanced topics, such as analyzing raw data or using scrapers for frontend website testing. Code samples are available to help you understand the concepts in practice.

  • Learn how to parse complicated HTML pages
  • Traverse multiple pages and sites
  • Get a general overview of APIs and how they work
  • Learn several methods for storing the data you scrape
  • Download, read, and extract data from documents
  • Use tools and techniques to clean badly formatted data
  • Read and write natural languages
  • Crawl through forms and logins
  • Understand how to scrape JavaScript
  • Learn image processing and text recognition

Reviews

There are 1 reviews for this book on GitHub.
Hendeca left a review on GitHub 2 months ago.

⭐️⭐️⭐️⭐️⭐️ A very practical, well-written, enjoyable, and entertaining book; the most enjoyable programming book I've read to date

Review

I just finished Python Web Scraping and I absolutely loved it. I am somewhat new to Python, though I have been a programmer for about 9 years. I got this book because I've always had an interest in the internet and in web scraping/data collecting. I started the book with a decent grasp of the basics of Python, and would recommend familiarizing oneself with the basics before reading it. That said, if you can write Python scripts, install Python libraries, and execute the scripts, I don't see why you can run the examples in this book with little trouble.

What I loved about this book was its practical nature and concise, clear explanations. Right away the book teaches you how to gather html from a remote URL and parse it with BeautifulSoup. The code examples are easy to understand and they work! The structure of the book is also fantastic. The list of topics and how the book progresses feels very natural. I found myself turning the page to start a new chapter, seeing the chapter title, and thinking "I was just wondering about that!"

I am somewhat fascinated by web scraping, so things like the appendix section on the legality and ethics of web scraping was just icing on the cake for me and made this book all the more interesting. For me, this book led directly to the creation of a few scraping projects I've been thinking about for some time. It's very rare for me that as I go through a book I find information that is immediately applicaple.

Who's it for?

In my view, this book is great for anyone in the following categories:

  • Someone who has begun coding in Python and wants to find some practical projects to help expand their knowledge and get their feet wet
  • An experienced coder (Python or not) who has a particular interest in web scraping and wants to explore the possibilities of web scraping/data collecting

Write a review

Read this book? Comment on this book's GitHub issue page and share what you liked and what you didn't like about it. Your GitHub comment will show up as a review here.