Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
430 stars 110 forks source link

search word with quotation #41

Open fazialnjd opened 1 year ago

fazialnjd commented 1 year ago

Hi. I search in google "laminated glass" and "polyvinyl butyral" and see multiple pages results; but when I send this phrase to googlesearch module; I am not getting any results. why? and how I can to fix it? (I am need exact result of this phrase.) this is my code:

    from googlesearch import search

    phrase = '"laminated glass" and "polyvinyl butyral"'
    results = search(phrase)
    res_list = list(results)

thanks

Nv7-GitHub commented 1 year ago

What does it return? An empty list?

fazialnjd commented 1 year ago

What does it return? An empty list?

Yes. It returns an empty list .

smyja commented 1 year ago

What does it return? An empty list?

Yes. It returns an empty list .

Did you resolve the issue?

codemee commented 1 year ago

I think that's the url encoding problem, I've make a pull request to fix this.

53

Nv7-GitHub commented 1 year ago

This should be fixed in the next release then