Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 1.2 KB
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="">
<sampleQuery>select * from {table} where place1="london" and place="paris"</sampleQuery>
<author>Christian Heilmann</author>
<description>Gives you the distance of two places on earth in miles or kilometers</description>
<select itemPath="" produces="XML">
var out = '';
var res = y.query("select href from html where url='' and xpath='//div[@class="+'"'+"content"+'"'+"]/p[@align="+'"'+"center"+'"'+"]/a'").results;
var out = <images/>;
for each(var i in res..a){
var url = ''+(i.@['href']);
var url = url.replace('&amp;','&');
var inner = y.query("select * from html where url = '"+url+"' and xpath='//div//td//img'").results;
out.img += inner..img;
response.object = <scraped>{out}</scraped>;
Jump to Line
Something went wrong with that request. Please try again.