5 ms·
Ask HN: Want to make $500 for scraping some data? (challenge)
Open a new tab and go to google.com.
Type in a band name like: "All Time Low"
You'll notice a box on the righthand side with more info about the band.
If you click the down arrow you'll see a "People also search for" section.
If you can scrape that data, in under 4 seconds(Sorry no PhantomJS), I'll pay you 500$ for your solution.
- Jake232 12y agoProbably possible to do, however what's up with just using Last.fm's API? http://www.last.fm/api/show/artist.getSimilar http://www.last.fm/api/show/artist.getSimilar
- gbachik 12y agoI am also using last.fm's API. I'm looking at a number of api's and doing algorithms on the results -thanks though
- opless 12y agoI'm sure they get their data from wikipedia, here's a start http://en.wikipedia.org/wiki/DBpedia http://en.wikipedia.org/wiki/DBpedia
- gbachik 12y agoit actually comes internally from their knowledge graph: Freebase
- stangeek 12y agoI have a working prototype. How do you want to proceed concretely?
- gbachik 12y agosorry somebody beat you to it!
- dkyc 12y agonodejs, requires node package fetch Under four seconds, please note that this violates Google's ToS and you will likely be blocked if you do this on any significant scale. var bandname = "All Time Low"; var fetchUrl = require("fetch").fetchUrl; var url = "https://www.google.de/search?q="; bandname = bandname.replace(" ", "+"); fetchUrl(url+bandname, { headers: { 'User-Agent' : 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' } }, function(error, meta, body){ var ret = []; var alts = body.toString().split('alt\\x3d\\x22'); alts.forEach(function (alt) { var cur = alt.split("\\x22")[0]; if (cur.indexOf("(")==-1) ret.push(cur) }); console.log(ret); });
- exbone 12y agowhy did you delete your s.o. question? http://webcache.googleusercontent.com/search?q=cache:LEbxw95yNqIJ:stackoverflow.com/questions/25336400/how-to-scrape-googles-similar-searches-challenge+&cd=1&hl=en&ct=clnk&gl=us http://webcache.googleusercontent.com/search?q=cache:LEbxw95...
- gbachik 12y agogot 4 downvotes and no answers. figured that wasn't going to help anyone to decided to ask here instead.
- motyar 12y agoNot related search but "keyword suggession" can help you. Here is Google XML API http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=hackerNews http://suggestqueries.google.com/complete/search?output=tool...
- brothe2000 12y agoDid you try Import.io?