Ask coding questions

← Back to all posts
I have a problem
h
JacobMcPherson1 (191)

I'm making a small search engine thing in python and I was able to get it working but when I tried it again it stopped working even though I hadn't changed anything. Can someone please tell me why?

Comments
hotnewtop
IL2PG (35)

1st of all it says “from import google”, that is not saying where u get it from

JacobMcPherson1 (191)

@IL2PG I've given up on the project, Thats why its kinda broken

owaso (0)

Welp, just to improve the code a little change os.system("pip install git+https://github.com/abenassi/Google-Search-API") to from Google-Search-API import google (import the Repl package first). To fix the code try:

Renaming the search() function to something else. If that doesn't work get back to me

JacobMcPherson1 (191)

@owaso It didn't work but thanks anyway

JacobMcPherson1 (191)

It worked just now but then I tried it again and it didn't work

owaso (0)

@JacobMcPherson1 Alright, i'll find a solution soon. Remove os.system("pip install git+https://github.com/abenassi/Google-Search-API") because it significantly slows down the startup. Always try to minimize the amount of "stuff" your project has.

owaso (0)

@JacobMcPherson1 Your code is probably fine then. I'm guessing its just an API issue