-
-
Save DenisMir/baeddbc83ccb490354b8 to your computer and use it in GitHub Desktop.
simple scrape layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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