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
- Fork it ( https://github.com/victorvsk/apify-server/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request