question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I wrote such a simple function and ran it. It returned an empty array. This was my 1st time using the module so shouldn’t be a rate-limiting thing. I also waited for a long time and retried, still no results.

    gg_query = "topic cluster"
    gg_search = yagooglesearch.SearchClient(
        gg_query,
        verbosity=4, # Logging level: DEBUG (CRITICAL:50, ERROR: 40, WARNING: 30, INFO: 20 -> 4, DEBUG: 10 -> 5, NOTSET: 0 -> 6)
    )
    gg_search.assign_random_user_agent()

    urls = gg_search.search()

Result:

2021-11-06 09:07:23,558 [MainThread  ] [INFO] Requesting URL: https://www.google.com/
2021-11-06 09:07:23,727 [MainThread  ] [INFO] Stats: start=0, num=100, total_valid_links_found=0 / max_search_result_urls_to_return=100
2021-11-06 09:07:23,727 [MainThread  ] [INFO] Requesting URL: https://www.google.com/search?hl=en&q=topic+cluster&num=100&btnG=Google+Search&tbs=0&safe=off&cr=en&filter=0
2021-11-06 09:07:23,906 [MainThread  ] [INFO] The number of valid search results (0) was not the requested max results to pull back at once num=(100) for this page.  That implies there won't be any search results on the next page either.  Moving on...

whereas with the original googlesearch library, I get a result with this code:

    from googlesearch import search
    for url in search(gg_query, stop=20):
        print(url)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
LeMousselcommented, Dec 5, 2021

Hi. Sorry for replying this late, but I have not had time to test this until today. It’s OK and it seems to work as expected. Good Job! Here log with verbosity=5: yagooglesearch.py.log

0reactions
opsdiskcommented, Dec 6, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

get no results from (4,1,5) Crossword Clue - Wordplays.com
The Crossword Solver found 30 answers to "get no results from (4,1,5)", 10 letters crossword clue. The Crossword Solver finds answers to classic...
Read more >
GET NO RESULTS FROM crossword clue
All solutions for "Get no results from" 16 letters crossword clue - We have 1 answer with 10 letters. Solve your "Get no...
Read more >
Get no results from - crossword puzzle clues & answers
Here are the possible solutions for "Get no results from" clue. It was last seen in British quick crossword. We have 1 possible...
Read more >
Get no results from - Crossword Clue and Answer
Get no results from (4,1,5). Ross Get it on Google Play.
Read more >
How to Keep Going When Seeing No Results | by Brandon Bell
How to Keep Going When Seeing No Results · Remind Yourself That You're Stronger Than Most · Reward Yourself in Moderation · Take...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found