The Ultimate Guide to Web Scraping
Minimum price
Suggested price

The Ultimate Guide to Web Scraping

About the Book

Hopefully you learned a thing or two from my article I Don’t Need No Stinking API: Web Scraping For Fun and Profit. Due to the popularity of that article — almost 100,000 views — I decided to write an even more detailed survey of the field, full of all the web scraping tips and tricks I've picked up.

The goal of the book — The Ultimate Guide to Web Scraping — is to hone your skills and help you become master craftsman in the art of web scraping.

We'll talk about the reasons why web scraping is a valid way to harvest information — despite common complaints. We'll look at the various ways that information is sent from a website to a client's computer, and how you can intercept and parse it. We'll also look at common traps and anti-scraping tactics and how you might be able to thwart them.

If you have any specific questions, just mention me on Twitter and I'd be happy to help!

About the Author

Hartley Brody
Hartley Brody

Over the past few years, I’ve scraped dozens of websites — from music blogs and fashion retailers to the USPTO and undocumented JSON endpoints I found by inspecting network traffic in my browser. Along the way, I've learned a few tricks and found my way around some common pitfalls. I've been working on this book for months, putting everything I know into a single, ultimate guide.

Table of Contents

  • Introduction to Web Scraping
  • Web Scraping as a Legitimate Data Collection Tool
  • Understand Web Technologies: What Your Browser is Doing Behind the Scenes
  • Pattern Discovery: Finding the Right URLs that Return the Data You’re Looking For
  • Pattern Discovery: Finding the Structure in an HTML Document
  • Hands On: Building a Simple Web Scraper with Python
  • Hands On: Storing the Scraped Data & Keeping Track of Progress
  • Scraping Data that’s Not in the Response HTML
  • Avoiding Common Scraping Pitfalls, Good Scraping Etiquette & Other Best Practices
  • How to Troubleshoot and Fix Your Web Scraping Code Without Pulling Your Hair Out
  • A Handy, Easy-To-Reference Web Scraping Cheat Sheet
  • Web Scraping Resources: A Beginner-Friendly Sandbox and Online Course

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub