Sign in

Photo by Anoir Chafik on Unsplash

This is the data science project I did while in Metis Data Science Bootcamp.

Introduction

According to the report from the National Council on Pet Population Study and Policy (NCPPSP) and American Society for the Prevention of Cruelty to Animals (ASPCA). Approximately 6.5 Million companion animals enter U.S. animal shelters every year. And, 1.5 Million shelter animals are euthanized per year.

If homes can be found for these animals, we may be able to reduce the euthanasia rate for these precious lives. I believe that this can be achieved by showcasing specific types of animals with a higher risk of Euthanasia…


When you wanted to scrape data from website in Python, you might think about the package available, such as BeautifulSoup, Selenium, and Scrapy, but wouldn’t it be better if there’s a simpler way? If you need to scrap tabular from web page, Pandas would also be good option. Pandas make it easy for us to scrape tabular data on web.

In this article, I will demonstrate:

  1. How to scrap tabular data with pandas from Wikipedia? https://en.wikipedia.org/wiki/Wikipedia:Multiyear_ranking_of_most_viewed_pages
  2. How to use Web Scraper to scrap data from Yelp?

Web scraping with Pandas

First, Check out the website (Wikipedia- Multiyear ranking of most viewed pages), There are…

YUWEN HUANG

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store