When I use the following code:
import requests def googleSearch(qu): with requests.session() as c: url = \'https://www.google.com\' qu =