google-custom-search

How to use Google Custom Search on https to avoid non secure content prompt?

北战南征 提交于 2019-12-22 05:09:13
问题 Is there a way to get the script for search results from an HTTPS site instead of http://www.google.com/afsonline/show_afs_search.js I am using the custom google business search on a HTTPS site. When search is submitted web browser shows warning: "This page contains both secure and nonsecure items" I tried to modify the source to be https://www.google.com/afsonline/show_afs_search.js but that doesn't work. Still JavaScript returned from that link connects to http links instead of https links.

Google Custom Search API for square images

那年仲夏 提交于 2019-12-21 09:17:59
问题 I'm looking for a way to specify that the images returned by the Google Custom Search API have a square format. I've tried tbs=iar:s (because I've read Using the Custom Search API (REST JSON) to search for square images), but it doesn't work. Have you an idea please ? 回答1: The problem is that tbs query parameter only applies to a regular image search on Google. For example, if you wanted to search for cat pictures with a square aspect ratio, you could do a search like this: http://images

Loading Google Custom Search results without page refresh

China☆狼群 提交于 2019-12-20 04:55:28
问题 I would like to submit a google custom search query without reloading/refreshing the entire html page. I'm using the latest v2 gcs with the 'Results Only' layout. Loading the gcs api, anywhere above the Search Form <script src="//www.google.com/jsapi" type="text/javascript"></script> <script> google.load('search', '1', {language : 'en', style : google.loader.themes.V2_DEFAULT}); </script> My Custom Search Form <form onsubmit="return executeQuery();" id="cse-search-box-form-id"> <input type=

Google Custom Search with custom search box and button?

Deadly 提交于 2019-12-18 10:29:15
问题 I am trying to make a Google custom search (I just need some sort of search engine on my site), and I need to make it so that I can use my own search box (input field). I need it to be of exact size. I also need to be able to make my own button to search. I am going to need to be able to change the size and background of the search button. I am not completely sure yet, but I might actually need it to be a regular img. Does anyone know how to do this? If you cannot do this with Google, do you

How to have multiple Google Custom Search field on the same page

喜夏-厌秋 提交于 2019-12-17 19:47:07
问题 I'm trying to have multiple search field on the same page with Google Custom Search (GCS) like this : <script> (function() { var cx = 'user_id:field_id1'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:search></gcse:search>

Implementing Google custom search API in iOS

蓝咒 提交于 2019-12-17 07:13:01
问题 I went through several links in order to find the proper steps to implement google customsearchapi in an ios application and spent about 6-7 hours in that process. Links: https://developers.google.com/custom-search/json-api/v1/introduction http://developers.google.com/apis-explorer/#p/customsearch/v1/search.cse.list?q=a&_h=1& https://productforums.google.com/forum/#!topic/customsearch/hT2fnfErVwo Google Custom Search: 403 error in iOS And Father of all All these provide bits and peaces of

Connect to internet : Google Custom Search in java app “not connecting” ()

做~自己de王妃 提交于 2019-12-14 02:35:46
问题 I am starting out on using google custom search api in java but it is just not connecting. I am receiving json data from google.(i am supposed to but it is not connecting..:() HttpResponse response = httpClient.execute(httpGet); // exception is thrown at this point. which is a line in my code. Code is : public class MyGoogleSearch{ final static String searchURL = "https://www.googleapis.com/customsearch/v1?"; // This is Important : final static String apiKey = "My-Key-has a '-'"; final static

Which API's are needed to get enabled for Google Custom search?

爱⌒轻易说出口 提交于 2019-12-13 18:25:55
问题 We are calling API by URL: https://www.googleapis.com/customsearch/v1?key=MY_KEY&cx=CUSTOM_SEARCH_ID&q=flower Getting error in reponse: "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } ], "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } We have enabled Custom Search API

Ruby Google Custom Seach API get results from next page

微笑、不失礼 提交于 2019-12-13 17:26:21
问题 the code below is only getting the results from the first page of the google pagination... how to get more results? require 'google/api_client' # autenticação client = Google::APIClient.new(:application_name => 'Ruby Drive sample', :application_version => '1.0.0', :client_id => 'xxxxxxxxxxxxxxxx', :client_secret => 'xxxxxxxxxxxxxx', :authorization => nil) search = client.discovered_api('customsearch') # chama a API response = client.execute( :api_method => search.cse.list, :parameters => { 'q

Google custom search refinement for newest results

泪湿孤枕 提交于 2019-12-13 12:33:59
问题 I'm using a google custom search engine on my website. I have two refinements on this custom search Refinement 1: searches on my blog Refinement 2: searches on a blog of my friend but I need a third refinement which searches for newest results of both websites, or the results of last 24 hours. Can I add some operator to the refinement which can do this? Or is there some other way to achieve it? 回答1: Multi-site Refinement There are two ways to create a refinement that searches both sites. In