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

SSL: CERTIFICATE_VERIFY_FAILED when using any search engine #158

Open
valerino opened this issue Mar 16, 2022 · 1 comment
Open

SSL: CERTIFICATE_VERIFY_FAILED when using any search engine #158

valerino opened this issue Mar 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@valerino
Copy link

Describe the bug

SSL: CERTIFICATE_VERIFY_FAILED when using any search engine.

To Reproduce
Steps to reproduce the behavior:

  1. Open python console to
  2. Import search_engine_parser
  3. Search using i.e. duckduckgo Engine :
eng = DuckDuckGoSearch()
results = eng.search('something', page)
  1. See error
File "/home/valerino/work/test_search/test_searchengines.py", line 187, in search
    results = eng.search(entity, page)
  File "/home/valerino/.local/lib/python3.8/site-packages/search_engine_parser/core/base.py", line 284, in search
    soup = loop.run_until_complete(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/valerino/.local/lib/python3.8/site-packages/search_engine_parser/core/base.py", line 212, in get_soup
    html = await self.get_source(url, cache, proxy, proxy_auth)
  File "/home/valerino/.local/lib/python3.8/site-packages/search_engine_parser/core/base.py", line 194, in get_source
    raise Exception('ERROR: {}\n'.format(exc))
Exception: ERROR: Cannot connect to host www.duckduckgo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')]

Desktop (please complete the following information):

  • OS: Linux Mint 20.3 Una
  • Python Version 3.8
  • Search-engine-parser version 0.6.6
@valerino valerino added the bug Something isn't working label Mar 16, 2022
@MeNsaaH
Copy link
Member

MeNsaaH commented Jul 13, 2022

is this still reproducible? Seems to be your connection/tls setup

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

2 participants