Here is my code, it was working properly before I was not getting an error while using it. I don’t understand how it happened even though I didn’t change with it. :
results = []
for query in my_list:
results.append(search(query, tld="com", num=1, stop=1, pause=2))
Error:
results.append(search(query, tld="com", num=1, stop=1, pause=2))
TypeError: search() got an unexpected keyword argument 'tld'
>Solution :
I assume the library you use was updated, and got rid of the tld keyword-arg in search. Read up on their documentation, and work around it.
What I would not recommend is installing an older version of the library to get the feature back. There’s probably a reason why this was removed in the first place.