Server

TODO: Write a gem description

Installation

Install gem:

$ gem install apify_server

Prepare

$ apify-server

Use

$ echo 'secret' > ~/.apify_secret

$ curl -X POST \
> -H "Content-type: application/json" \
> -d '{ "html": "<div id='title'>text</div>", "pattern": { "title": "<% #title | first | html %>" }}' \
> http://0.0.0.0:4567/parser?apify_secret=secret

Contributing

  1. Fork it ( https://github.com/victorvsk/apify-server/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request