Scraping and predictive analytics of stock data
Stock Me Maybe is a web application that lets you peek into the future of stock prices! It uses sentiment and predictive analytics. Stock Me Maybe is written in Python using the web application framework named Django. MySQL is used for database management.
- Virtualenv (https://pypi.python.org/pypi/virtualenv)
- MySQL (https://www.mysql.com/)
- Create a virtual environment: 'virtualenv env -ppython3.4'.
- Activate the virtualenv: 'source env/bin/activate'.
- run 'pip install -r requirements.txt'.
- Create a new database in MySQL called stockmemaybe.
- In stockmemaybe/settings.py, enter the username and password in the DATABASES section.
- If you haven't created an app for twitter access yet, create one.
- Enter consumer key, consumer secret, oauth token oauth token secret from your twitter app into the respective fields in ugc/views.py tweets_get() method.
- Run the command : "python manage.py migrate"
- Run the application on the local host using the command : “python manage.py runserver ”
- Open the web browser and enter the url “localhost:8000/main”.
- Enter the company ticker in the textbox.
- Press the “Analyse” button.
- The project computes and displays the predicted stock price for the entered company.