Skip to content

rebecca-weiss/Stock_Scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stock Scrape

Author: Rebecca Weiss

Purpose

R package to scrape / clean historical stock prices

Usage

To scrape data, use scrapestock function with the url to historical data. For example: Use function to get data from Apple, Tesla, Amazon, and Netflix

tsla <- scrapestock('https://finance.yahoo.com/quote/TSLA/history?p=TSLA')
aapl <- scrapestock('https://finance.yahoo.com/quote/AAPL/history?p=AAPL')
nflx <- scrapestock('https://finance.yahoo.com/quote/NFLX/history?p=NFLX')
amzn <- scrapestock('https://finance.yahoo.com/quote/AMZN/history?p=AMZN')

About

R package to scrape, clean, and analyze historical stock data in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published