Google Custom Search Redirection

So, I'm using Google Custom Search (Google CSE), and I'm trying to use refinement functionality to redirect search queries to Google Scholar.

Basically, I exactly follow the documentation found here . However, it turns out that, despite the availability of documentation, this functionality does not exist, and it seems that Google does not plan to implement it in the near future (see the StackOverflow article here ).

My question is: does anyone have a hack / workaround for this problem so that I can use Google CSE to search Google Scholar?

+5
source share
1 answer

Server side

You can use something like https://github.com/ckreibich/scholar.py to analyze the results of the work of a Google scientist-developer yourself and expose it as an API that you could use and make any way that you liked .

He would use the search for a scientist under the hood. However, since this is not an official API, it can break at any time, it also requires that you have server resources to serve requests, but allow you to have the finest interface that you have full control over.

IFrame

You can open the iframe at a specific URL, and this can be embedded inside your page. This looks a little awkward, but that means you don't need to reference from the outside, and you can embed it locally.

<iframe src='http://scholar.google.com/scholar?q={query}'></iframe> 

See here. This may be especially what is good for you.

External reference

Alternatively, you can simply open a new tab / window with

 <a href='http://scholar.google.com/scholar?q={query}' target='_blank'> My Link </a> 
+1
source

Source: https://habr.com/ru/post/1263858/


All Articles