Chapter 6. Screen-scraping and Other Practical Applications

In this chapter, we will cover the following topics:

  • Searching for business addresses using the Google Maps API
  • Searching for geographic coordinates using the Google Maps URL
  • Searching for an article in Wikipedia
  • Searching for Google stock quote
  • Searching for a source code repository at GitHub
  • Reading news feed from BBC
  • Crawling links present in a web page

Introduction

This chapter shows some of the interesting Python scripts that you can write to extract useful information from the web, for example, searching for a business address, stock quote for a particular company or the latest news from a news agency website. These scripts demonstrate how Python can extract simple information in simpler ways without communicating with complex APIs.

Following these recipes, you should be able to write code for complex scenarios, for example, find the details about a business, including location, news, stock quote, and so on.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.245.1