LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.

Home Page:https://www.npmjs.com/package/googlethis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot retrieve search results.

kome1208 opened this issue · comments

commented

Steps to reproduce

hello,
When I run the code to do this search, it does not show any search results, it shows null.

google.search('capybara').then((results) => {
    console.log(results)
});

Failure Logs

{
  results: [],
  videos: [],
  knowledge_panel: KnowledgeGraph {  
    type: null,
    title: null,
    description: null,
    url: null,
    metadata: [],
    books: [],
    tv_shows_and_movies: [],
    ratings: [],
    available_on: [],
    images: [],
    songs: [],
    demonstration: null,
    lyrics: null
  },
  featured_snippet: FeaturedSnippet { title: null, description: null, url:
 null },
  did_you_mean: null,
  weather: Weather {
    location: null,
    forecast: null,
    precipitation: null,
    humidity: null,
    temperature: null,
    wind: null
  },
  time: Time { hours: null, date: null },
  location: Location { title: null, distance: null, map: null },
  dictionary: Dictionary {
    word: null,
    phonetic: null,
    audio: null,
    definitions: [],
    examples: []
  },
  translation: Translation {
    source_language: null,
    target_language: null,
    source_text: null,
    target_text: null
  },
  top_stories: [],
  unit_converter: Converters {},     
  people_also_ask: [
    'capybara チートシート',
    'Capybara Rails',
    'capybaraマイクラ',
    'Capybara gem',
    'capybara::node::element',       
    '株式会社capybara',
    'Capybara GitHub',
    'Capybara::Selenium',
    'RSpec,Capybara',
    'Capybara::Poltergeist',
    'Capybara js: true',
    'Capybara とは Rails',
    'Capybara::Node::Simple'
  ],
  people_also_search: []
}

Expected behavior

Search results are displayed correctly

Current behavior

It was working fine a few days ago, but now, like the log above, most things are null.

Version

Default

Anything else?

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
commented

Update to v1.4.3 and let me know if it works now. Thanks for the report.

commented

The update allows us to retrieve it correctly. Thank you.