Sha256: 1ecff0ec3f2e0d6f9972fdf3c46c11b045a20a908dcbdd365466c0c844bb12f7
Contents?: true
Size: 518 Bytes
Versions: 17
Compression:
Stored size: 518 Bytes
Contents
# Find pizza in Mountain View using Yelp page = require('webpage').create() url = 'http://lite.yelp.com/search?find_desc=pizza&find_loc=94040&find_submit=Search' page.open url, (status) -> if status isnt 'success' console.log 'Unable to access network' else results = page.evaluate -> pizza = [] list = document.querySelectorAll 'address' for item in list pizza.push(item.innerText) return pizza console.log results.join('\n') phantom.exit()
Version data entries
17 entries across 17 versions & 2 rubygems