datamade/property-image-cache

Name: property-image-cache

Owner: datamade

Description: :house: A Flask app to cache images from the Cook County Property info site

Created: 2015-09-10 21:32:51.0

Updated: 2017-01-05 17:04:22.0

Pushed: 2017-09-22 18:54:16.0

Homepage:

Size: 1246

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Property Image Cache

The one-stop shop for all your cross origin request needs. This README contains only instructions for Councilmatic users.

A new Councilmatic, you say?
Property Image Cache

Update LEGISTARS and WHITELIST in app.py.

The LEGISTARS variable should point to a city name and the url to its legistar site. The WHITELIST variable should point to the url that appears in the document link. Note: you may need two per city, as in the case of LA Metro.

Councilmatic

Find the full_text_doc_url method, which generates an encoded url that directs to a document or image. To test this locally, the base url should point to your local port:

se_url = 'https://pic.datamade.us/lametro/document/'
_url = 'http://127.0.0.1:5000/lametro/document/'
Run it!
on app.py

Then, go to a Councilmatic page of your chosing, and view your embedded PDF.

When you finish, do not forget to pull your changes onto the “Hotdog Princess” server.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.