This is a simple Django app to fetch historical UF values from Banco Central de Chile. It works on BeautifulSoup, Selenium and PhantomJS.
Install python packages:
pip install -r requirements.txt
Install PhantomJS:
Follow instructions from https://gist.github.com/julionc/7476620
Fetch UF historical data:
python manage.py shell
from uf.views import scrape_uf
scrape_uf()
Run app:
python manage.py runserver
Check results:
http:https://127.0.0.1:8000/uf/list
http:https://127.0.0.1:8000/uf/price?value=25&date=19981021