https://github.com/nigma/web-screenshots
Sample Flask web app for taking web page screenshots using Selenium PhantomJS driver. Runs on Heroku.
https://github.com/nigma/web-screenshots
Last synced: over 1 year ago
JSON representation
Sample Flask web app for taking web page screenshots using Selenium PhantomJS driver. Runs on Heroku.
- Host: GitHub
- URL: https://github.com/nigma/web-screenshots
- Owner: nigma
- Created: 2014-01-10T22:28:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-12T14:58:37.000Z (over 12 years ago)
- Last Synced: 2025-03-01T10:35:49.308Z (over 1 year ago)
- Language: Python
- Size: 97.7 KB
- Stars: 12
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Web Screenshots experiments
===========================
Sample Flask web app for taking web page screenshots using Selenium PhantomJS driver. Runs on Heroku.
Note: this is a very simple experiment. There are probably many better implementations out there.
See [scrn.herokuapp.com](http://scrn.herokuapp.com/) for example.
Heroku configs
--------------
This app uses [heroku-buildpack-multi](https://github.com/ddollar/heroku-buildpack-multi) buildpack.
Pass the buildpack as param during app creation or configure it later using `BUILDPACK_URL` var.
```
heroku apps:create app-name --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
```
```
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
```
Inspect the `heroku config` and make sure that the following vars are set (and add them if missing):
```
LD_LIBRARY_PATH: /usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
PATH: /usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin
```