Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 736 Bytes

File metadata and controls

29 lines (17 loc) · 736 Bytes

data-scrape

Objective

Web scraping is extracting data from websites. In this project, you'll be scraping data from Yahoo's Finance section. More specifically, you'll be harvesting the company name and stock price of a very famous social media company. You've been giving them a lot of your data, now it's time to return the favor.

Getting Started

Install packages

If you haven't already, you will need to install the following packages:

  • pip - easy_install pip
  • Beautiful Soup - pip install BeautifulSoup4

Import Libraries

  1. Create a file called app.py
  2. Create a file called index.csv
  3. At the very top of app.py import your libraries:
import urllib2
from bs4 import BeautifulSoup