Jul-09-2017, 03:04 PM
Hello Python Pros,
I am trying to use the Python to do the google search with the duration of 1 week, but it shows the error message as below.
Pls help me to correct my scripts or give me some web sites for the guidance, thank you.
TypeError: search() got an unexpected keyword argument 'as_qdr'
# -*- coding: cp950 -*-
try:
from google import search
except ImportError:
print("No module named 'google' found")
# to search
query = "A computer science portal"
for j in search(query, tld="co.in", num=10, as_qdr="w", stop=1, pause=2):
print(j)
I am trying to use the Python to do the google search with the duration of 1 week, but it shows the error message as below.
Pls help me to correct my scripts or give me some web sites for the guidance, thank you.
TypeError: search() got an unexpected keyword argument 'as_qdr'
# -*- coding: cp950 -*-
try:
from google import search
except ImportError:
print("No module named 'google' found")
# to search
query = "A computer science portal"
for j in search(query, tld="co.in", num=10, as_qdr="w", stop=1, pause=2):
print(j)