This program is a web scraper that extracts data from the Dhaka Stock Exchange website and saves it to an Excel file for further analysis. It uses Python libraries such as requests
, pandas
, BeautifulSoup
, time
, random
, urllib3
, tqdm
, and xlsxwriter
to scrape and store the data.
The DSE Company Scraper is a Python-based web scraping tool that gathers information about companies listed on the Dhaka Stock Exchange. It collects data such as company names, trading codes, sectors, stock prices, dividend details, and more. The scraped data is then stored in an Excel file for further analysis and processing.
Follow these step-by-step instructions to use this program:
- Download the executable file from this link.
- Extract the downloaded file to a desired location on your computer.
- Open the extracted folder and run the
DSE_Company_Scraper.exe
file. - The program will automatically start scraping data from the Dhaka Stock Exchange website.
- Wait for the program to complete scraping all the data. This may take a few minutes, depending on your internet connection speed.
- Once the scraping is complete, the program will save the data to an Excel file named
DSE_Company_Details.xlsx
. - The Excel file will be saved in the same location where the
DSE_Company_Scraper.exe
file is located. - Open the Excel file to view and analyze the scraped data.
To run the DSE Company Scraper locally, follow these steps:
-
Clone the repository:
git clone https://github.com/MustakAbsarKhan/DSE_COMPANY_SCRAPER_Python.git
-
Change to the project directory:
cd DSE_COMPANY_SCRAPER_Python
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Python script:
python main.py
The DSE Company Scraper provides a user-friendly interface for scraping data from the Dhaka Stock Exchange website. By running the script or the executable file, the program will automatically start scraping the data and save it to an Excel file. You can customize the scraping settings by modifying the code according to your requirements.
Contributions are welcome! If you have any ideas, suggestions, or improvements, please open an issue or submit a pull request. Make sure to follow the existing code style and guidelines.
This project is licensed under the MIT License.
Using this program, you can easily extract and store data from the Dhaka Stock Exchange website for further analysis. The program is user-friendly and easy to use, and it saves you the time and effort required to manually extract data from the website. Feel free to contribute to this project and make it even better!