Skip to content

Instantly share code, notes, and snippets.

@DenisMir
Created March 5, 2011 16:51
Show Gist options
  • Save DenisMir/baeddbc83ccb490354b8 to your computer and use it in GitHub Desktop.
Save DenisMir/baeddbc83ccb490354b8 to your computer and use it in GitHub Desktop.
simple scrape layout
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Just scraping</title>
</head>
<body>
<p>Scrape it now</p>
<form action="/scrape" method="post" accept-charset="utf-8">
<input type="text" id="send" name="q" />
</form>
{{if results}}
{{each(i, result) results}}
<p>
${i+1} - <a href="${result.link}">${result.text}</a>
<p>${result.desc}</p>
</p>
{{/each}}
{{/if}}
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment