The Investment Analysis System is a Python application that collects stock data from various financial websites and generates CSV files for analysis. It uses web scraping techniques to gather data from the following sources:
- Fundamentus: Scrapes fundamental stock data from Fundamentus and generates a
Fundamentus.csvfile. - Status Invest: Downloads a CSV file from Status Invest containing advanced search results and saves it as
status_invest.csv. - Invest Site: Scrapes stock selection data from Invest Site and generates a
invest_site.csvfile.
Before running the application, ensure that you have the following prerequisites installed:
- Python 3.10
- BeautifulSoup
- Requests
- Shutil
- MySQL
You can install the dependencies by running the following command:
pip3 install bs4 requests shutils mysql-server
To use the script, follow these steps:
-
Clone the repository:
git clone https://github.com/pedromessetti/investment-analysis-system.git -
cdto the project directory -
Run the main script:
python3.10 main.py
This will execute the scraping functions and store the necessary CSV files in the csv directory.
This project is licensed under the MIT License.
The project was developed using Python 3.10 and various libraries. Here are some learnings that I have with the following tools:
- BeautifulSoup: A library for parsing HTML and XML.
- Requests: A library for making HTTP requests.
If you encounter any issues or have suggestions for improvement, please open an issue.
Pedro Vinicius Messetti |
|---|