How To Get Google Results Into Our Webpage Without Same Origin Policy
Solution 1:
Google prevents you from doing this. You could set up some server side code to scrape the results but this would almost definitely be blocked by Google. If this suits your needs you can create a form that submits your search to that page and opens it in a new tab like so:
<form action="http://scholar.google.co.uk/scholar" method="get" target="_blank">
<inputtype="text" name="q">
<inputtype="submit" value="Search">
</form>
Live example here: http://jsfiddle.net/v8qG8/
Update:
I mentioned that Google would block the scraping of its services, however I just found the third party library which does that. Not sure on Google's opinion on it though. http://www.icir.org/christian/scholar.html
Solution 2:
I answer it myself. There are no solutions so far.
Solution 3:
You may also want to look at Google's custom API. You can get 100 free searches a day and then you pay $5 / 1000 search after that. If you cache the results or do low volume this may work for you.
- Search API: https://developers.google.com/custom-search/json-api/v1/overview
- All Google API's: https://developers.google.com/apis-explorer/#p/
Post a Comment for "How To Get Google Results Into Our Webpage Without Same Origin Policy"