Skip to content

vladislavpyatnitskiy/financial.data.scraping

Repository files navigation

Web Scraping of Financial Data

R GitHub last commit

AAPL MSFT GOOGL AMZN META
Market Cap (intraday) 2.95T 2.75T 1.70T 1.50T 861.01B
Enterprise Value 3.00T 2.69T 1.61T 1.57T 836.10B
Trailing P/E 30.94 35.84 25.92 76.01 29.57
Forward P/E 28.82 33.56 20.28 43.29 19.92
PEG Ratio (5 yr expected) 2.24 2.24 1.27 2.70 0.77
Price/Sales (ttm) 7.83 12.65 5.83 2.72 6.94
Price/Book (mra) 47.47 12.45 6.20 8.20 6.03
Enterprise Value/Revenue 7.83 12.32 5.43 2.84 6.59
Enterprise Value/EBITDA 73.27 74.01 17.27 21.37 17.60

Table. 1. Example of scraped data from security's statistics tab of Yahoo! Finance


Welcome to the Financial Data Scraping repository! This repository provides a convenient tool for fetching financial data from various sources including Yahoo Finance, Investing.com, SmartLab and Finviz. Whether you're a data analyst, investor, or researcher, this tool simplifies the process of gathering crucial financial information for your analysis and decision-making.

FYI: script for Investing.com is temporarily not working; Script for Yahoo! Finance is revived and ready to use; For Smart-lab it is recommended to be on Russian Server.

Features:

• Data from Multiple Sources: Access financial data from Yahoo Finance, Investing.com, SmartLab, stockanalytics and Finviz web sites, allowing for comprehensive analysis and comparison.

• Price data from sources like Yahoo! Finance and Moscow Exchange (Russian Stocks).

• Easy-to-Use Interface: Simple and intuitive functions make it easy to retrieve data with just a few lines of code.

• Customisable Parameters: Customise your data requests with parameters tailored to your specific needs, such as date range, stock symbols and more.

Libraries

• quantmod

• rvest

• httr

• xml2

• moexer

Installation

You may clone my repository via command line:

git clone https://github.com/vladislavpyatnitskiy/financial.data.scraping.git