A Django webpage that shows the trend of stocks, today's top buys, top sells and top holds, top gainers and top losers.
This Django website is based on a underlying Sentiment Analysis model using Apache Spark framework.
-
Setup a Spark cluster. Start Spark cluster by typing
spark-installation-directory/sbin/./start-all.sh
. -
Submit the scraping job to the Spark cluster by typing
bin/spark-submit scraper.py
scraper.py -
Start Django server
python manage.py runserver
-
Open
http://127.0.0.1:8000/stock/
Django webpage