0

yql xpath returns no results

I am able to successfully obtain the correct results using this:

            $.get(makeUrl('http://www.realtor.com/propertyrecord-search/' + postcode),
                    function(data) {
                        var context = $('<div />').html($(data).find('content').text());

                        $('#avgDays').html($(context).find('table.summaryTable strong:eq(3)').text());
                         $('#avgList').html($(context).find('table.summaryTable strong:eq(4)').text()
                        + ' - ' + $(context).find('table.summaryTable strong:eq(1)').text());


                    });

But I get no results with this code:

$.get(makeUrl('http://www.zillow.com/widgets/zestimate/ZestimateSmallWidget.htm?did=zillow-shv-small-iframe-widget&type=iframe&forRent=true&address=' + address.replace(/\ /g, '+') + '&csz=' + postcode), function(data) { var context = $('

').html($(data).find('content').text()); $('#avgRent').html($(context).find(*'span.zestimate-value').text());

                    });

The YQL returns this for the query result:

true <![CDATA[http://www.zillow.com/robots.txt]]> <![CDATA[http://www.zillow.com/widgets/zestimate/ZestimateSmallWidget.htm?did=zillow-shv-small-iframe-widget&type=iframe&forRent=true&address='5894+Dogwood+Cir&csz=35111]]> <![CDATA[http://www.zillow.com/widgets/zestimate/ZestimateSmallWidget.htm?did=zillow-shv-small-iframe-widget&type=iframe&forRent=true&address='5894+Dogwood+Cir&csz=35111]]> 252 250 0.2.1217 Rent Zestimate ®: <br/> $966 /mo

So what am I doing wrong to get no results?

by
0 Replies

Recent Posts

in YQL