Skip to content

Instantly share code, notes, and snippets.

@balrok
Created February 27, 2013 11:09
Show Gist options
  • Save balrok/5047168 to your computer and use it in GitHub Desktop.
Save balrok/5047168 to your computer and use it in GitHub Desktop.
function parse(url, html) {
var urlLocation = getLocation(url)
if (urlLocation.hostname == 'wohnungsmarkt24.de' || urlLocation.hostname == 'www.wohnungsmarkt24.de')
return parseWohnungsmarkt24(url, html);
else if (urlLocation.hostname == 'immobilienscout24.de' || urlLocation.hostname == 'www.immobilienscout24.de')
return parseImmobilienscout24(url, html);
else
console.log("no parser for this one");
return {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment