javascript - How to get Google results into our webpage without SAME ORIGIN POLICY -
we have own form in our webpage. want show google(www.google.com/scholar
) results our webpage. tried
jquery, ajax
html framing (iframe, frameset)
and of these have
sameorigin
issues.
we tried using new tab
, found has same problem here . these solutions seem work http://www.google.com/custom , no other google websites.
is there alternative so?
google prevents doing this. set server side code scrape results blocked google. if suits needs can create form submits search page , opens in new tab so:
<form action="http://scholar.google.co.uk/scholar" method="get" target="_blank"> <input type="text" name="q"> <input type="submit" value="search"> </form>
live example here: http://jsfiddle.net/v8qg8/
update:
i mentioned google block scraping of services, found third party library that. not sure on google's opinion on though. http://www.icir.org/christian/scholar.html
Comments
Post a Comment