PacktLib: Getting Started with Beautiful Soup

Getting Started with Beautiful Soup

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Installing Beautiful Soup

Installing Beautiful Soup

Using Beautiful Soup without installation

Verifying the installation

Quick reference

Summary

Creating a BeautifulSoup Object

Creating a BeautifulSoup object

Tag

The NavigableString object

Quick reference

Summary

Search Using Beautiful Soup

Searching in Beautiful Soup

Using search methods to scrape information from a web page

Quick reference

Summary

Navigation Using Beautiful Soup

Navigation using Beautiful Soup

Quick reference

Summary

Modifying Content Using Beautiful Soup

Modifying Tag using Beautiful Soup

Modifying string contents

Deleting tags from the HTML document

Special functions to modify content

Quick reference

Summary

Encoding Support in Beautiful Soup

Encoding in Beautiful Soup

Output encoding

Quick reference

Summary

Output in Beautiful Soup

Formatted printing

Unformatted printing

Output formatters in Beautiful Soup

Using get_text()

Quick reference

Summary

Creating a Web Scraper

Getting book details from PacktPub.com

Getting selling prices from Amazon

Getting the selling price from Barnes and Noble

Summary

Index