Sha256: 7eb713df0f05b537ef084d01b188842b06511f9272723d4f01b60496e75e598d

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 KB

Contents

{
  "index": {
    "url": ["http://victorvsk.github.io/apify/"],
    "js": true
  },
  "demo_index": {
    "from": "from('index') select('.container a')",
    "js": false,
    "host": "http://victorvsk.github.io",
    "pattern": {
      "hellow_text": "<% .container .jumbotron | first | html %>"
    }
  },
  "categories": {
    "url": [
      "http://victorvsk.github.io/apify/products/page/2",
      "http://victorvsk.github.io/apify/products/page/1"
    ],
    "js": false,
    "host": "http://victorvsk.github.io",
    "pattern": {
      "title": "<% title %>-<% .pagination .active a %>",
      "customers": {
        "__iterator__": "#customers ol",
        "name": "<% a %>",
        "email": "<% a | first | attr_href %>",
        "sex": "<% .gender | first | text %>",
        "purschase_name": "<% .product-name %>",
        "purschase_count": "<% .badge %>"
      },
      "not_in_stock_products": {
        "__iterator__": "#products .col-xs-6:last ol",
        "price": "<% .price %>",
        "image": "<% img | first | attr_src %>",
        "product_name": "<% ./text()[3] | first | text %>"
      },
      "products": {
        "__iterator__": "//div[@class=\"col-xs-6\" and ./h2/text() = \"In stock\"]/ul/li",
        "price": "<% .price %>",
        "image": "<% img | first | attr_src %>",
        "product_name": "<% a | first | text %>",
        "link": "<% a | first | attr_href %>"
      }
    }
  },
  "products": {
    "from": "from('categories') select('//div[@class=\"col-xs-6\" and ./h2/text() = \"In stock\"]/ul/li/a')",
    "js": false,
    "host": "http://victorvsk.github.io",
    "pattern": {
      "name": "<% h1.product-name %>",
      "images": "<% #images img | mapattr_src %>",
      "properties": {
        "__iterator__": "#product_properties tr",
        "prop_name": "<% td:first %>",
        "prop_val": "<%  td:last %>"
      },
      "short_descr": "<% #short_description %>",
      "descr": "<% #description | first | html %>"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apify_core-0.1.1 spec/examples/apify_request.json
apify_core-0.1.0 spec/examples/apify_request.json