Applikations Interface zur automatischen Suche im Web
Hochinteressant, so ein web-crawler. Bin glücklicherweise nicht auf
Immosuche, aber für Mobil-erwerb wäre so was schon interessant. Gibt es
da vielleicht einen Link oder Typ, wo so ein Programm erwerbbar wäre? mfg
Hallo aliter,
besorge Dir einfach bei Google einen kostenlosen API key, damit ist der Rest dann ganz einfach. Angenommen Du suchst das günstigste Neufahrzeug, dann passt für Dich dieses Programm-Beispiel:
https://developers.google.com/custom-search/json-api/v1/using_rest
<html>
<head>
<title>JSON/Atom Custom Search API Example</title>
</head>
<body>
<div id="content"></div>
<script>
function hndlr(response) {
for (var i = 0; i < response.items.length; i++) {
var item = response.items;
// in production code, item.htmlTitle should have the HTML entities escaped.
document.getElementById("content").innerHTML += "<br>" + item.htmlTitle;
}
}
</script>
<script src="https://www.googleapis.com/customsearch/v1?key=<span class="apiparam">YOUR-KEY</span>&cx=017576662512468239146:omuauf_lfve&q=cars&callback=hndlr">
</script>
</body>
</html>
############
Viele Grüße
amos