So i am making a home assistant (open sourced on github) but as i try to search using google so i can scrape it gives me an error
for j in search(query, tld="co.in", num=10, stop=10, pause=2):
NameError: name 'search' is not defined
this is my code
import bs4
import google
def scrape(query):
for j in search(query, tld="co.in", num=10, stop=10, pause=2):
print(j)
scrape("super mario bros")
I tried things like updating the modules, changing the rewriting from scratch and comparing with sources like Geeksforgeeks all of which failed.
1