https://github.com/datamade/property-image-cache
:house: A Flask app to cache images from the Cook County Property info site
https://github.com/datamade/property-image-cache
Last synced: 3 months ago
JSON representation
:house: A Flask app to cache images from the Cook County Property info site
- Host: GitHub
- URL: https://github.com/datamade/property-image-cache
- Owner: datamade
- Created: 2015-09-10T21:32:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T19:02:02.000Z (7 months ago)
- Last Synced: 2024-11-14T08:12:52.748Z (5 months ago)
- Language: Python
- Homepage:
- Size: 1.36 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - datamade/property-image-cache - :house: A Flask app to cache images from the Cook County Property info site (Python)
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:
```
# base_url = 'https://pic.datamade.us/lametro/document/'
base_url = 'http://127.0.0.1:5000/lametro/document/'
```### Run it!
```
python 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.