Hello, I need a program that -Given a search query- uses altavista and returns the number of hits for this search query. I prefer java but other languages are fine with me. Is there an API that can be used for this purpose?
+1
A:
This should be simple...
- Make a web request to Altavista passing in your search query.
- Get the resulting HTML back.
- Then parse out the hit count from the html.
David
2009-09-25 19:22:34
It worked, Thank you :)
Sarah
2009-09-25 20:40:28
+1
A:
You could adapt the code here:
http://nadeausoftware.com/node/73
Which will allow you to specify a URL to search for, get the results and parse out the returned number of matches all in Java
Altavista does not have a search API and I could not locate an up-to-date third-party solution.
Nissan Fan
2009-09-25 19:31:42