Skip to content
KnowledgeCity

Data Visualization and Mapping

Learn to get your own data by data scraping, using RESTful APIs, and exploring geocentric data.
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Intermediate Provider Bill Hood  3 Lessons ·  17m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

A reality of most data visualization projects is that you will usually face the task of obtaining or otherwise creating some of the data you need. In these lessons, we focus on two of the most common automated techniques for obtaining data and emphasize how you can always type in the data you need. You’ll learn that a website is all HTML, with many tags that can be used to identify and grab data. In our example, we will use the Beautiful Soup library to interrogate a website looking for a keyword and then pull all the web links associated with that keyword, making the links available programmatically.

Next, we will use a RESTful API to obtain data from an increasingly common approach to data exchange. Representational State Transfer, or REST, is an application program interface that rides on the internet and allows programmatic access to an informational repository. We’ll also explore several APIs and extract data into a model we can plot. Finally, we’ll combine several best practices in one exercise and explore data from a Pandas data frame with longitude, latitude, and magnitude of events that we can plot on a world map.

What You'll Learn

  • Obtain data by data scraping from websites using HTML tags
  • Use the Beautiful Soup library and the requests library to find a keyword and pull associated web links programmatically
  • Obtain data through RESTful APIs to access an informational repository over the internet
  • Extract data from several APIs into a model you can plot
  • Plot longitude, latitude, and magnitude data from a Pandas data frame onto a world map
  • Recognize geocentric data

Key Takeaways

  • Most data visualization projects require obtaining or creating some of the data yourself, and data can always be typed in manually when needed.
  • A website is all HTML, with many tags that can be used to identify and grab data.
  • Beautiful Soup can interrogate a website for a keyword and make the associated web links available programmatically.
  • REST (Representational State Transfer) is an application program interface that rides on the internet and allows programmatic access to an informational repository.
  • Data from a Pandas data frame containing longitude, latitude, and magnitude of events can be plotted on a world map.

Frequently Asked Questions

What data-gathering techniques does this course cover?

It focuses on two common automated techniques for obtaining data: data scraping from websites using the Beautiful Soup library, and obtaining data through RESTful APIs. It also emphasizes that you can always type in the data you need.

What libraries and tools will I work with?

You will use the Beautiful Soup library and the requests library to scrape websites, RESTful APIs to obtain data, and a Pandas data frame to plot data on a world map.

What will I be able to do by the end of the course?

You will be able to obtain data by scraping and by RESTful APIs, understand Beautiful Soup and the requests library, recognize geocentric data, and plot longitude, latitude, and magnitude of events on a world map.

What lessons are included in this course?

The course includes three lessons: Data Scraping Using the Web, Data Scraping Using an API, and Plotting Data to Geography Maps.

What skills does this course help build?

It builds skills in data mapping, data visualization, datamaps, information visualization, scientific visualization, and visualization.