Giter Club home page Giter Club logo

mustakabsarkhan / stock_watch_py_script Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 40.24 MB

Stock Watch Python Script - A tool for scraping stock data from Dhaka Stock Exchange (DSE) and Chittagong Stock Exchange (CSE) websites.

Home Page: https://github.com/MustakAbsarKhan/stock_watch_py_script/blob/main/exe_file/stock_watch.zip

License: MIT License

TeX 15.54% HTML 82.76% Python 1.70%
automation chittagong-stock-exchange data-analysis data-mining data-processing data-scraping data-visualization dhaka-stock-exchange finance financial-analysis

stock_watch_py_script's Introduction

Stock Watch Python Script



A Python script for scraping stock data from Dhaka Stock Exchange (DSE) and Chittagong Stock Exchange (CSE) websites.
Please `Star` (⭐) the repository if you like the program ♥ ♥

Table of Contents

Introduction

Stock Watch Python Script is a tool that allows you to scrape stock data from the Dhaka Stock Exchange (DSE) and Chittagong Stock Exchange (CSE) websites. It fetches data such as the last trading price, closing price, day's range, volume, and more for a list of stocks provided in the stock_names.txt file. The script utilizes web scraping techniques using the requests, BeautifulSoup, and tqdm libraries.

Features

  • Scrapes stock data from DSE and CSE websites
  • Provides information such as the last trading price, closing price, day's range, volume, and more
  • Allows customization of data preferences
  • Opens stocknow.com.bd for shareholding '%' changes (DSE only)

Prerequisites

  • Python 3.7, 3.8, or 3.9 installed
  • Required Python packages: requests, beautifulsoup4, and tqdm. Install them using the following command:
    pip install requests beautifulsoup4 tqdm

Installation

  1. Clone the repository:
    git clone https://github.com/MustakAbsarKhan/stock_watch_py_script.git
  2. Navigate to the project directory:
    cd stock_watch_py_script

Usage

  1. Prepare the stock_names.txt file:

    • Create a file named stock_names.txt in the project directory.
    • Add the trading codes of the stocks you want to fetch data for, with each code on a new line.
    • Save the file.
  2. Run the script:

    python main.py
  3. Follow the prompts:

    • If you wish to go with the default settings and see data from both DSE and CSE, type y and press Enter.
    • If you want to customize data preferences, type n and follow the instructions.
    • When prompted, you can choose to see data from DSE, CSE, or both.
    • If you choose to see data from DSE, the script will open stocknow.com.bd for shareholding '%' changes.
    • Press Enter to move to the next stock in the list.
  4. The script will display the extracted stock data for each stock in the console.

  5. If you prefer using the executable file (stock_watch.exe) you can find it as stock_watch.zip inside exe_file folder in the Repository. You can simply double-click on it to launch the program. The executable file eliminates the need for installing dependencies and running the script from the command line.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

stock_watch_py_script's People

Contributors

mustakabsarkhan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rifat-87

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.