Nv7-GitHub/googlesearch

search result in variable

Closed this issue · 4 comments

in which variable does this module stores final search result ?

You define what variable you want it stored in. search() simply returns the final search results, assign that value to a variable like this:

(results can be called anything else you'd like)
results = search("test search")

If you'd like the results in a list use list() like this:
results = list(search("test search"))

You define what variable you want it stored in. search() simply returns the final search results, assign that value to a variable like this:

(results can be called anything else you'd like) results = search("test search")

If you'd like the results in a list use list() like this: results = list(search("test search"))

So can I do like this?
print(results)
?
If no then how ?
I'm making a chat bot with voice support so for that I need.......

That's correct, if you do results = list(search("test search")) then you can also do print(results), that's correct

That's correct, if you do results = list(search("test search")) then you can also do print(results), that's correct

okay, thanks