Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search_engine_parser.core.exceptions.NoResultsOrTrafficError: The result parsing was unsuccessful. It is either your query could not be found or it was flagged as unusual traffic #150

Closed
MrBotDeveloper opened this issue Aug 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@MrBotDeveloper
Copy link

All other serch engines working perfectly but always getting NoResultsOrTrafficError error on Google Search.
Hosted On Heroku

2021-08-22T07:14:34.448558+00:00 app[web.1]: ENGINE FAILURE: Google
2021-08-22T07:14:34.448558+00:00 app[web.1]:
2021-08-22T07:14:34.448558+00:00 app[web.1]: The result parsing was unsuccessful. It is either your query could not be found or it was flagged as unusual traffic
2021-08-22T07:14:34.448558+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/search_engine_parser/core/base.py", line 286, in async_search
2021-08-22T07:14:34.448558+00:00 app[web.1]: return self.get_results(soup, **kwargs)
2021-08-22T07:14:34.448558+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/search_engine_parser/core/base.py", line 235, in get_results
2021-08-22T07:14:34.448558+00:00 app[web.1]: raise NoResultsOrTrafficError(
2021-08-22T07:14:34.448558+00:00 app[web.1]: search_engine_parser.core.exceptions.NoResultsOrTrafficError: The result parsing was unsuccessful. It is either your query could not be found or it was flagged as unusual traffic
@MrBotDeveloper MrBotDeveloper added the bug Something isn't working label Aug 22, 2021
@infinity-plus
Copy link

infinity-plus commented Aug 27, 2021

All other serch engines working perfectly but always getting NoResultsOrTrafficError error on Google Search.
Hosted On Heroku

I get the exact same error on the local machine as well.
My code:

from search_engine_parser.core.engines.google import Search as Google

google = Google()
results = google.search('Harsh Navdhare')
for result in results:
    print(result['title'])
    print(result['link'])
    print(result['description'])
ENGINE FAILURE: Google

Traceback (most recent call last):
  File "d:\Harsh\projects\google-search-bot\try.py", line 4, in <module>    results = google.search('Harsh Navdhare')  File "C:\Users\navdh\AppData\Roaming\Python\Python39\site-packages\search_engine_parser\core\base.py", line 295, in search    return self.get_results(soup, **kwargs)
  File "C:\Users\navdh\AppData\Roaming\Python\Python39\site-packages\search_engine_parser\core\base.py", line 251, in get_results    raise NoResultsOrTrafficError(
search_engine_parser.core.exceptions.NoResultsOrTrafficError: The result parsing was unsuccessful. It is either your query could not be found or it was flagged as unusual traffic

I think it is not a Heroku thing.

@MeNsaaH
Copy link
Member

MeNsaaH commented Sep 20, 2021

It's a known issue. It seems Heroku is blacklisted on Google.
See #143. Closing this in favor of that

@MeNsaaH MeNsaaH closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants