LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.
https://www.npmjs.com/package/googlethis
MIT License
320 stars 77 forks source link

Cannot retrieve search results. #36

Closed kome1208 closed 1 year ago

kome1208 commented 1 year ago

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

LuanRT commented 1 year ago

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

kome1208 commented 1 year ago

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