The purpose of this project is to extract the csv files of a given time period from the JSE website and to make relevant calculations on the data retrieved. Calculations such as the percantage gain on each stock, as well as, the dollar gain on each stock in a given time period.
- Python 3
- Pip
$ pip install pipenv
$ git clone https://github.com/Dev-Dominic/jse_stock_analysis.git
Navigate in terminal/command line to location of project folder
Note: Ensure you perform commands in project folder
$ pipenv shell
$ pipenv install
This should successfully install all the dependencies for the script
$ exit
Close virtual enviroment after finishing use of the script and project
The main method and all the supporting functions are containted in jseApp.py
The command line arguments passed are the start date and end date for which the data should be searched within and inclusive of.
$ python jseApp.py 'start_date' 'end_date'
$ python jseApp.py 2011-12-20 2018-12-20 <year-month-day>
- Web Scrape JSE website
- Create a temproray folder to house csvfiles
- Download all csv files from start date to end state (inclusive)
- Store all the stock's data in a list
- Find out the average closing stock price of each security
- Presetaton of information that was processed