Skip to content

sbeng/cookdriveAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cookdriveAutomation

Automated order and parsing actions

Installation

  • Get Node:

    $ brew install node
    
  • Get PhantomJS:

    $ brew install phantomjs

  • Install dependencies:

    $ npm install

Usage

Run parser:

$ phantomjs src/parser.js <API URL>

Parsing result:

[{
    "content": [{
        "items": [{
            "description": "Селера стебло, петрушка, цукор...",
            "href": "http://cookdrive.com.ua/products/view/fitness.html",
            "image": "http://cookdrive.com.ua/var/catalog/products/thumbs/54ec2dbed4f6c.png",
            "price": "17 грн.",
            "product": "Салат",
            "shortDetails": "160г.",
            "title": "ФІТНЕС"
        },
        ...],
        "name": "Салати"   
    }, ...],
    "href": "http://cookdrive.com.ua/products/type/pisne-menyu",
    "id": "14",
    "title": "Пісне меню"
},
...]

About

Automated order and parsing actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published