Skip to content

ModuleNotFoundError: No module named 'googlesearch' #73

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

Open
kilodelta8 opened this issue Mar 2, 2025 · 1 comment
Open

ModuleNotFoundError: No module named 'googlesearch' #73

kilodelta8 opened this issue Mar 2, 2025 · 1 comment

Comments

@kilodelta8
Copy link

kilodelta8 commented Mar 2, 2025

After cloning the repo, going through the setup procedures the script fails with "ModuleNotFoundError: No module named 'googlesearch'".

NOTE: I did create a python virtualenv.

I tried nimbly and carelessly installing googlesearch from pip in hopes that it would solve the problem: pip install googlesearch

I have tried pip -m search googlesearch and was met with:

ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.

So I searched pypi.org and was unabe to locate googlesearch but found google-search and similar others, but installation did not resolve the issue.

Here is terminal output:

john@ubuntu:~$ cd Osint/
john@ubuntu:~/Osint$ ls
blackbird  DetectDee  Eyes  Hawker  X-osint
john@ubuntu:~/Osint$ cd X-osint/
john@ubuntu:~/Osint/X-osint$ ls
bugs_report       Icons    output.pdf        static          xosint
Demo              images   README.md         subdomains.txt  xosintenv
disclaimer.html   LICENSE  requirements.txt  templates
google_Dorks.txt  output   setup.sh          vins.txt
john@ubuntu:~/Osint/X-osint$ source xosintenv/bin/activate
(xosintenv) john@ubuntu:~/Osint/X-osint$ sudo xosint
[sudo] password for john: 
Sorry, try again.
[sudo] password for john: 
Traceback (most recent call last):
  File "/usr/local/bin/xosint", line 5, in <module>
    from googlesearch import search # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'googlesearch'
(xosintenv) john@ubuntu:~/Osint/X-osint$ pip install googlesearch
ERROR: Could not find a version that satisfies the requirement googlesearch (from versions: none)
ERROR: No matching distribution found for googlesearch
(xosintenv) john@ubuntu:~/Osint/X-osint$ pip install search
ERROR: Could not find a version that satisfies the requirement search (from versions: none)
ERROR: No matching distribution found for search
(xosintenv) john@ubuntu:~/Osint/X-osint$ pip install google-search
Collecting google-search
  Downloading google_search-1.1.1-py2.py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: beautifulsoup4 in ./xosintenv/lib/python3.12/site-packages (from google-search) (4.13.3)
Requirement already satisfied: lxml in ./xosintenv/lib/python3.12/site-packages (from google-search) (5.3.1)
Requirement already satisfied: soupsieve in ./xosintenv/lib/python3.12/site-packages (from google-search) (2.6)
Requirement already satisfied: typing-extensions>=4.0.0 in ./xosintenv/lib/python3.12/site-packages (from beautifulsoup4->google-search) (4.12.2)
Downloading google_search-1.1.1-py2.py3-none-any.whl (6.5 kB)
Installing collected packages: google-search
Successfully installed google-search-1.1.1
(xosintenv) john@ubuntu:~/Osint/X-osint$ sudo xosint
Traceback (most recent call last):
  File "/usr/local/bin/xosint", line 5, in <module>
    from googlesearch import search # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'googlesearch'
(xosintenv) john@ubuntu:~/Osint/X-osint$ pip search googlesearch
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.
(xosintenv) john@ubuntu:~/Osint/X-osint$ python -m pip search googlesearch
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.
(xosintenv) john@ubuntu:~/Osint/X-osint$ pip install googlesearch-python
Requirement already satisfied: googlesearch-python in ./xosintenv/lib/python3.12/site-packages (1.3.0)
Requirement already satisfied: beautifulsoup4>=4.9 in ./xosintenv/lib/python3.12/site-packages (from googlesearch-python) (4.13.3)
Requirement already satisfied: requests>=2.20 in ./xosintenv/lib/python3.12/site-packages (from googlesearch-python) (2.32.3)
Requirement already satisfied: soupsieve>1.2 in ./xosintenv/lib/python3.12/site-packages (from beautifulsoup4>=4.9->googlesearch-python) (2.6)
Requirement already satisfied: typing-extensions>=4.0.0 in ./xosintenv/lib/python3.12/site-packages (from beautifulsoup4>=4.9->googlesearch-python) (4.12.2)
Requirement already satisfied: charset-normalizer<4,>=2 in ./xosintenv/lib/python3.12/site-packages (from requests>=2.20->googlesearch-python) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in ./xosintenv/lib/python3.12/site-packages (from requests>=2.20->googlesearch-python) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./xosintenv/lib/python3.12/site-packages (from requests>=2.20->googlesearch-python) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in ./xosintenv/lib/python3.12/site-packages (from requests>=2.20->googlesearch-python) (2025.1.31)
(xosintenv) john@ubuntu:~/Osint/X-osint$ sudo xosint
Traceback (most recent call last):
  File "/usr/local/bin/xosint", line 5, in <module>
    from googlesearch import search # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'googlesearch'
(xosintenv) john@ubuntu:~/Osint/X-osint$ 
@AryzXploit
Copy link

hi bro, try this pip install googlesearch-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants