Code Monkey home page Code Monkey logo

webscraperyf's Introduction

WebScraper

This project contains a python program that allows the user to explore data obtained from https://finance.yahoo.com/ as a WebScraper.

The program will obtain from Yahoo Finance's main page the last closing values of the top 3 trending stock market indexes that you can see in the top of the main page.

This will return a dataframe with all the data and will display it in different plots.

The aim of this project is not to provide a tool to extract useful information from yahoo finances specifically (there are programs very efficient for that: https://github.com/ranaroussi/yfinance), instead this repository is going to explore the functions of the libraries bs4 and request and how to use them to present the results.

Library that the program uses:

  • bs4
  • requests
  • pandas
  • plotnine

Files used

Files:

  • main.py: The python program
  • main.IPYNB: Jupyter Notebook with the main program and explanatory text.
  • date_conversion.py: This function converts in one line the dates of the dataframe as datetime.
  • give_me_trend.py: This function returns top 3 trending stock market indexes from yahoo finance and their urls.
  • give_me_top3Data.py: This function returns a Dataframe that contains the close values of the top 3 trending stock market indexes in yahoo finance's main page.
  • README: File that contains the description of the functionality of the program and the contents of the files.

Credits

Work based in model by Manthan Koolwal: https://codeburst.io/how-to-scrape-yahoo-finance-using-python-31164aa06468

webscraperyf's People

Contributors

gares95 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.