<commit_before># node-webshot-server
Node based server for taking webshots using [node-webshot](https://github.com/brenden/node-webshot). Includes heroku config.

## Getting started

    $ npm install
    $ node server.js
    open your browser at http://localhost:5000?url=google.com

## Heroku

    $ heroku create [name]
    $ heroku config:add LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
    $ heroku config:add PATH=/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin
    $ git push heroku master
    open your browser at http://appname.herokuapps.com?url=google.com<commit_msg>Add instructions for resizing options<commit_after># node-webshot-server
Node based server for taking webshots using [node-webshot](https://github.com/brenden/node-webshot). Includes heroku config.

## Getting started

    $ npm install
    $ node server.js
    open your browser at http://localhost:5000?url=google.com

## Heroku

    $ heroku create [name]
    $ heroku config:add LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
    $ heroku config:add PATH=/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin
    $ git push heroku master
    open your browser at http://appname.herokuapps.com?url=google.com

## Service options

### Resizing
    http://localhost:5000?url=google.com&width=500
    http://localhost:5000?url=google.com&height=300
    http://localhost:5000?url=google.com&width=200&height=400
{'fraction_non_alphanumeric': 0.13130615065653076, 'fraction_numerical': 0.0221147201105736, 'mean_word_length': 4.027777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '691184', 'n_tokens_mistral': 514, 'n_tokens_neox': 458, 'n_words': 95}