Rails site for Doppler Value Investing
Ruby Shell CSS CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
settings
spec
vendor
.gitignore
.rspec
Capfile
Gemfile
Gemfile.lock
Guardfile
README
Rakefile
config.ru
nightly.rb
nightly.sh
notes-cheapest_stocks.txt
notes-existing_table.txt
notes-ransack.txt
short.rb
short.sh
weekly.rb
weekly.sh

README

DEVELOPMENT AND PRODUCTION ENVIRONMENT:
1.  Go to the config directory and run the update.rb script.  This
copies the database.yml.devel-only as database.yml AND provides 
the username and password for the Postgres database.
2.  Go to the app root directory and enter "bundle install"

OBTAINING DATA:
1.  Create a Postgres table called pg_dvi.
2.  In irb mode, enter the commands "require 'rubygems'" and "require 'dvi_scrape'.
3.  In irb mode, enter the command "Dvi_scrape.clear" to remove any existing archives of 
web pages containing financial statements.
4.  To gather data for a small sample of stocks, enter the command "Dvi_scrape.dopeler".
5.  To gather data for all stocks, enter the the following command:
Dvi_scrape.dopeler(:delay => true, :long => true)
6.  To print a copy of the database to public/stocks_all.csv, enter the following command:
require File.expand_path('../pg_to_csv', __FILE__)

PRODUCTION ENVIRONMENT ONLY:
1.  Run the nightly.sh script to gather data.
2.  Run the weekly.sh script to remove any existing archives of web pages containing 
financial statements.