documentation for unzip option

stvnrlly 10 years ago
parent
commit
a7c61ae559
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/models/agents/website_agent.rb

+ 2 - 0
app/models/agents/website_agent.rb

@@ -40,6 +40,8 @@ module Agents
40 40
             "description": { "path": "results.data[*].description" }
41 41
           }
42 42
 
43
+      If your JSON is compressed with `gzip`, set the `unzip` option to `true` to inflate it before extraction.
44
+
43 45
       When parsing text, each sub-hash should contain a `regexp` and `index`.  Output text is matched against the regular expression repeatedly from the beginning through to the end, collecting a captured group specified by `index` in each match.  Each index should be either an integer or a string name which corresponds to <code>(?&lt;<em>name</em>&gt;...)</code>.  For example, to parse lines of <code><em>word</em>: <em>definition</em></code>, the following should work:
44 46
 
45 47
           "extract": {