node-metainspector icon indicating copy to clipboard operation
node-metainspector copied to clipboard

console.log client.image() is undefiend and client.images() crashes server

Open sferoze opened this issue 10 years ago • 1 comments

I am trying to log out the images on a webpage and it does not work.

I have tried.

console.log 'client image ' + client.images()  // Crashes server

console.log 'client image ' + client.image() // undefined

Here is the code I am using:

client = new MetaInspector('http://cnn.com', {})

client.on 'fetch', ->
  console.log 'client image ' + client.images
  console.log 'client links ' + client.links().join(",")

client.fetch()

console.logging out client.description() & client.links() seems to work fine.

sferoze avatar Jul 14 '14 00:07 sferoze