FAQ Database Discussion Community


Accessing Wordpress with google custom search

php,wordpress,google-custom-search
This is probably a ignorant question but is there a url that all wordpress hosted sites use? say if i used the "site: www.example.com" to refine my google search it would limit the search only to sites hosted by wordpress. and if this isn't possible can you use google custom...

How do I get Google search results from urlfetch in google apps script

google-apps-script,google-docs,google-custom-search
I have been trying the following code var response = UrlFetchApp.fetch("https://www.google.com/#q=this+is+a+test"); var contentText = response.getContentText(); Logger.log(contentText); var thisdoc=DocumentApp.getActiveDocument().getBody() ; thisdoc.setText(contentText); Logger.log(contentText.indexOf("About")); But it only seems to return the header, and empty body, and none of the search results. At minimum I should be able to see the "About xxx results"...

How to style google cse

html,css,google-custom-search,google-cse
I've got this code from google but I'm unable to style it, I put new rule in my site's css but it doesn't listen to it and overrides it with google's default, what can I do with it to make it look as I want it to instead of how...

Hide Search Engine ID for Google Custom Search Element API 2.0

javascript,asp.net-mvc,google-custom-search
I am implementing Google Custom Search Element API 2.0 in an ASP.NET MVC project. In the documentation they require that the following javascript is included in the view, with the <gcse:search> element following. <script> (function() { var cx = 'xxxxxxxx:yyyyyyyy'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;...

CSS issue with styling the Google custom search box

css,google-custom-search,zendesk
I'm trying to include the Google custom search on our help center. The functionality is ok, however, the styling is quite wrong. I am pretty sure that some CSS must be overriding/interfering with the Google styles, but I can't seem to find out which ones (tables I guess). More specifically:...

Is it possible to search by microdata/structured data in a standard Google search?

google-search,microdata,google-custom-search,structured-data
I have been using a Google Custom Search Engine to return useful results using standard X-Ray techniques and the more:pagemap:: techniques as outlined here https://developers.google.com/custom-search/docs/structured_search Does anyone know how, on a standard google search, I could apply the same idea to query the Structured Data on a page when x-ray...

Google custom search engine result counts changing as results are paged

google-custom-search
I have implemented a Google custom search engine in a website. When searching a word, it brings out results like totalResults - 168 and I am retrieving it by 10 results per page. Up to 60 results it works fine, but in the 7th page, the total results from Google...

Searching multiple labels in google CSE

seo,google-custom-search,google-cse
I know it has been asked before: 1, 2. But I was reading the documents and saw it might be possible. I need to add multiple refinements to the query in google custom search engine. So if I have multiple labels on my CSE, I would like to query a...

How do I get a developer id for google custom search api?

python,google-app-engine,google-api,google-custom-search
I have a GAE app , so I selected : Public Access API Browser (or should I have selected server) *.mysite.appspot.com/*, *.googleapis.com/*, http://localhost:8080/* I make a api call as : from lib.googleapiclient.discovery import build service = build("customsearch", "v1",developerKey="xxxx") But I get error as: "There is a per-IP or per-Referer restriction...

Image Search Example via Rails Google API Client

google-app-engine,ruby-on-rails-4,google-api-client,google-custom-search
I need to replicate "Search Google for this Image" in my rails app where image search is performed on an image in the app. I am using google-api-ruby-client gem. To test the api I am starting with a simple query search: Trying this for a regular search term but getting...

dailyLimitExceededUnreg error with key set in request

api,curl,google-custom-search
I have 3 server keys in my google console for different servers. In the beginning only one key seemed to work, and that was my local IP address. After debugging with cURL on the staging server I found that the response was: { "error": { "errors": [ { "domain": "usageLimits",...