0

yql console provides response but code does not

The yql console provides a link as the response to the yql statement. But the following code results in undefined. What could be the problem?

YQL Console Statement:

select href from html where url= 'http://www.zillow.com/homes/5894-Dogwood-Cir,-35111_rb/' and xpath='//div[@class="right property-info"]/dl/dt/span/span/a'

Code:

Zip: <br/><br/> Address: <br/><br/> Get Stories

by
4 Replies
  • ~~~ your code goes here ~~~Zip: <br/><br/> Address: <br/><br/> Get Stories

    0
  • <b>Zip: </b> <input type='text' size='15' id='zip' value='35111'/><br/><br/>
    <b>Address: </b> <input type='text' size='15' id='address' value='5894 Dogwood Cir'/><br/><br/>
    <button id='get_stories'>Get Stories</button>
    
    
    
    0
  • your XPATH is different in your jsbin vs the query you posted above.

    div[@class="right property-info"] vs. div[@class="property-address"]

    seems that the former is the correct one.

    Thanks -Paul

    0

Recent Posts

in YQL