Skip to content

A Python Flask web application, using multithreaded queues to web scrape and return stock ticker information.

Notifications You must be signed in to change notification settings

anvitaguptaa/stocks-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stocks-Scraper

Project Description

A Python Flask web application, using multithreaded queues to web scrape and return stock ticker information.

How Does it Work?

Setup

Create a virtual environment

python -m venv .venv

Activate the virtual environment

For Windows, run the following command:

.venv/Scripts/Activate.ps1

For Linux, run the following command:

source .venv/bin/activate

Running Stocks-Scraper locally

Remember to activate the virtual environment created above before running the Flask application.

Flask

Set the 'FLASK_APP' environment variable:

  • For Windows:
    set FLASK_APP=app
  • For Unix:
    export FLASK_APP=app

You need to start the Flask server locally to host the application:

  • For Windows:
    flask run
  • For Unix:
    make develop

Once running, copy the server to a web browser to access the application.

Web Application

In the input form, a user can enter as many comma-seperated stock symbols as they would like, and press the "submit" button.

For example, goog, msft, amzn, dis, amc, aapl, amd, rblx, nvda, f, fb, snap, aal, uber, znga

The user will then be redirected to a page containing a table displaying the appropriate ticker information.

The user may click the "go back" button to retrieve information for different stock symbols.

About

A Python Flask web application, using multithreaded queues to web scrape and return stock ticker information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published