Here is my attempt to transform Google Search Results into a RSS feed. This functionality is missing from Google. Test it out and provide some feedback. I have published the feed as a web service at
http://www.ecubicle.net/gsearch_rss.asmx
There is a single function called GetSearchResults with the following signature
GetSearchResults(byval searchPage As string, byval gQuery As String, byval numOfResults As String)
- searchPage provides the google search page that runs in multiples of 10 with 10 results each page (default on Google). The value for first page is 0
- gQuery is google query. You can use any set of Google operators here to tune the query
- numOfResults is the number of results to return per page. Default is 15.
The returned XML is RSS 2.0 compliant. As such, any feed reader can also read the returned XML document.
Using in a Feed Reader
To call this in a feedreader, here is the GET syntax for the web service
http://www.ecubicle.net/gsearch_rss.asmx/GetSearchResults?searchPage=0&gQuery=tutorial+asp+net&numOfResults=15
In the above, replace the parameter values shown in red with the your query values.
0 comments:
Post a Comment