google-custom-search

Adding Google's standard search (not custom) to my website

六月ゝ 毕业季﹏ 提交于 2019-12-11 18:13:12
问题 My intention is to embed Google results in my website. I don't want to customise the domain/s on which the search is performed or anything, just a 'bog standard' Google search based on search parameters I pass it. 2 questions: How do I display google results on my website as a response to search criteria entered into a textbox I have? Is there any legislation I need to take into account? I know my second question sounds rather strange but I'm aware that what I'm appearing to do here is

How to parse a Google CSE results located on a site in Java?

北城余情 提交于 2019-12-11 11:12:57
问题 I want to parse a Custom Search Element JavaScript function. Here's a template of this function https://developers.google.com/custom-search/docs/element#overview. <!-- Put the following javascript before the closing tag. --> <script> (function() { var cx = '123:456'; // Insert your own Custom Search engine ID here var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document

Errors with Google Custom Search popular queries

雨燕双飞 提交于 2019-12-11 09:44:10
问题 I've got a custom search on a website and I'd like to display the most popular searches using the Custom Search Popular Queries option. First off, the code Google gives in the process is wrong - I kept getting bad requests. This SO post helped me rebuild the correct URL, but now I'm getting a syntax error. When I run the test, I get, Uncaught SyntaxError: Unexpected token : in the console from the JSON information that comes back. Here's my HTML: <div id="queries"></div> <script src="https:/

google custom search

雨燕双飞 提交于 2019-12-11 08:09:31
问题 cant quite find the answer I need so hopefully you guys can help. I am trying to develop ( with basic but growing knowledge!) a split search bar for a custom cake website. basically I have one search bar in the header, and a drop down with whole site and cakes in it. When the whole site is selected I want it to pass the search parameters to googel custom search and display on the page. when cakes is selected it triggers a custom php search I wrote to search for and display a single cake

search news by keyword using Google CSE

瘦欲@ 提交于 2019-12-11 07:18:36
问题 I want to search results from "Google News" via "Google Custom Search Engine Api (CSE)" based on location/country and keyword. I tried using it by setting up a CSE which only searches inside the site "news.google.com" but then it only returns old news article clippings . Not sure how to grab the recent news articles. Also, i noticed that if we set schema type NewsArticle, its not accurate as not all news sites having this schema type of page. I knew that there is a workaround to use RSS feeds

GOOGLE CUSTOM SEARCH API - (searches related to function)

别来无恙 提交于 2019-12-11 06:29:15
问题 I need your help. I am looking to create a custom search engine. I am currently looking at using the Google Custom search API. I tried looking into this but I couldn't find anything concrete. Is there any way to setup related search words on a Google Custom search website? Is there any API that can generate "searches related to" ? 回答1: Yes, there is a service by SimilarSites which outputs data very similar to the Google Related API, but they use their own proprietary algos. 回答2: I'm not

GoogleCustom API number of results

一笑奈何 提交于 2019-12-11 03:36:03
问题 How is possible to get more results then 10 with googlecoustom API? I think its just take results from 1st page... when I type to search more then 10 I get this error: Here is request: https://www.googleapis.com/customsearch/v1?q=Montenegro&cx=002715630024689775911%3Ajczmrpp_vpo&num=10&key={YOUR_API_KEY} num=10 is number of results 400 Bad Request - Show headers - { "error": { "errors": [ { "domain": "global", "reason": "invalid", "message": "Invalid Value" } ], "code": 400, "message":

Google Custom Search with transparent background

蓝咒 提交于 2019-12-11 02:53:38
问题 I am embedding a custom google search into my blogger site using layout -> add a gadget -> html/javascript . However, the search box has a white background. How can I make the background transparent? As you can see in the last screenshot, there is no option for the background color of the search box. Is there any other way to make it transparent? 回答1: Miscommunication! U so-called professional should simply say, "Refer to Google Custom Search & click CSS source file." Search for 'background

Using the TBS (or equivalent parameter) in Google Custom Search

浪子不回头ぞ 提交于 2019-12-10 20:12:01
问题 When using Google Custom Search the TBM parameter for selecting specific types of search engines (e.g. tbm=pts for patents or tbm=blg for blogs) seems to be supported even though this isn't properly documented in the list of parameters. However when using such "special" searches one usually extend the query by using the TBS parameter, unfortunately this doesn't work for me. For example: https://www.google.com/?tbm=pts&gws_rd=ssl#q=touch+screen&tbas=0&tbs=ptss:g,ptso:us&tbm=pts filters

Google Custom Search Engine (CSE) button image missing / not appearing

限于喜欢 提交于 2019-12-10 17:13:36
问题 After implementing a Google Custom Search Engine (CSE) and adding their JavaScript code to the Master Page for my site, I saw the search box and button but the button had no text or image on it. It was just a blank gray bar, as shown below. The gray button is supposed to have an image of a magnifying glass. This is the JavaScript code provided by Google, so it seemed to me that was all that was available to change: <script> (function () { var cx = 'XXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXX'; var gcse