This is the Python script for acquiring and storing stock fund data for Bargain Stock Funds. This source code is obsolete and has been replaced by the bsf_scrape Ruby gem.
Python Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data/input-short
modules
.gitignore
README
bsf.py
long.sh
nightly.sh

README

This is the Python script for acquiring and storing stock fund data for
Bargain Stock Funds.  This script requires lxml and python-psycopg2 
and will not work without these packages.

1.  Development environment:  Open a terminal window and enter the 
following commands:
cd
git clone https://github.com/jhsu802701/bsf-python.git
sudo su postgres -c psql
CREATE ROLE [local username] SUPERUSER LOGIN;
\q
createdb pg_bsf

2.  Go to the bsf-python directory.  To run the short version, enter 
"python bsf.py".  To run the long version, enter "python bsf.py long".  
The nightly.sh script is for use by cron in the production environment.