Index of /pystockmood
Name Last modified Size Description
Parent Directory -
_tempnotes.txt 12-Sep-2013 16:58 1.8K
audiofiles/ 11-Jun-2017 15:58 -
examplerun.txt 13-Sep-2013 22:28 5.0K
pystockmood-full-package.zip 11-Jun-2017 16:20 286K
pystockmood.png 26-Jul-2016 16:45 213K
pystockmood.py 13-Sep-2013 13:45 5.5K
testfiles/ 25-Oct-2015 17:32 -
This is pystockmood - a somewhat-experimental and not-at-all-serious
program that tries to guess the mood of the stock market from day to
day by looking for a set of patterns in the text scraped from prominent
financial news reporting websites. It demos and combines Python's
re and urllib libraries, as well as some fairly nasty comprehensions.
To use, run the main script, pystockmood.py, whose code and comments are
the full documentation for the program.
Just for fun, this plays a song at the end; pystockmood.png captures the
action. You'll need to place 3 audio files (e.g., MP3s) of your choosing
in the audiofiles directory (stripped of its content here) and code their
names in the script.
The testfiles folder has example input pages, and file examplerun.txt is
a, well, example run (most of it is pattern traces).
Get pystockmood-full-package.zip for all these parts in a single zipfile.