8000 ERROR · Issue #29 · anthonyhseb/googlesearch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ERROR #29
Open
Open
@AbhiSinghDeveloper

Description

@AbhiSinghDeveloper
  • google-search version:
  • Python version:
  • Operating System:

Description

Traceback (most recent call last):
File "c:\Abhi\installer\Anaconda3\Lib\site-packages\googlesearch\tempCodeRunnerFile.py", line 1, in
urllib.request
NameError: name 'urllib' is not defined
File "c:\Abhi\installer\Anaconda3\Lib\site-packages\googlesearch\googleseller\Anaconda3\Lib\site-packages\googlesearch\googlesearch.py" response = search.search(query, count)
File "c:\Abhi\installer\Anaconda3\Lib\site-packages\googlesearch\googlesearch.py", line 39, in search
totalText = soup.select(GoogleSearch.TOTAL_SELECTOR)[0].children.next().encode('utf-8')
PS C:\Users\Abhishek Singh\Desktop\Automate Tasks> python -u "c:\Users\Abhishek Singh\Downloads\test2.py"
Traceback (most recent call last):
File "c:\Users\Abhishek Singh\Downloads\test2.py", line 2, in
response = GoogleSearch().search("something")
File "C:\Abhi\installer\Anaconda3\lib\site-packages\googlesearch\googlesearch.py", line 39, in search
ch1 = soup.select(GoogleSearch.TOTAL_SELECTOR)[0].children
IndexError: list index out of range
PS C:\Users\Abhishek Singh\Desktop\Automate Tasks> python -u "c:\Users\Abhishek Singh\Downloads\test2.py"
Traceback (most recent call last):
File "c:\Users\Abhishek Singh\Downloads\test2.py", line 2, in
response = GoogleSearch().search("something")
File "C:\Abhi\installer\Anaconda3\lib\site-packages\googlesearch\googlesearch.py", line 39, in search
totalText = soup.select(GoogleSearch.TOTAL_SELECTOR)[0].children.next().encode('utf-8')
IndexError: list index out of range
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

from googlesearch.googlesearch import GoogleSearch
response = GoogleSearch().search("something")
for result in response.results:
print("Title: " + result.title)
print("Content: " + result.getText())

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0