On 02/16/2013 05:48 PM, Jason Hsu, Android developer wrote:
My first serious Ruby on Rails project will automatically display
information on the ETFs and mutual funds with the lowest price/book
and price/cash flow ratios and also provide other essential
information for value investors like the expense ratio, the annual
portfolio turnover rate, and the size (in %) of the largest investment
in the portfolio.
This project will be analogous to the stock screening system of
Doppler Value Investing (http://www.dopplervalueinvesting.com/screen),
which uses a combination of Python and Drupal. Every night, the
Python script automatically scrapes data from the Smartmoney web site,
calculates the Dopeler price/book ratio for each stock, saves the
information in a *.csv file, and copies this *.csv file to the Drupal
web site so that it's publicly accessible. My Doppler Value Investing
web site already works, so I'm not about to redo it. So I'll be using
Ruby on Rails for a brand new project instead.
Based on what I did for Doppler Value Investing, I'd be inclined to
have a separate web site (in Ruby on Rails) and a Ruby script that
produces an output in *.csv and *.html files and copies these output
files to the Ruby on Rails web site. However, I get the feeling that
it would be better to integrate the web site and the number-crunching
script.
Given all this, if my web site dedicated to finding the most
undervalued ETFs and mutual funds were your project instead of mine,
how would you go about it?
My inclination would be to have a seperate task (cron job maybe) that
scraped the data and put it into the database. I would then have the
rails web site just calculate any needed factors from the data in the
database and sort and display the info. YMMV
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.