I'm working on a script that looks at Google Trends and have hit a bit of a problem in regards to a variable called "params":
This is the code I have:
param = {
'hl': 'en-US',
}
response = requests.get(**INSERT URL HERE**, params=param)
class TrendReq(UTrendReq):
def _get_data(self, url, method=GET_METHOD, trim_chars=0, **kwargs):
return super()._get_data(url, method=GET_METHOD, trim_chars=trim_chars, params=param, **kwargs)
pt = TrendReq()
I'm getting the response:
TypeError: pytrends.request.TrendReq._get_data() got multiple values for keyword argument 'params'
I'm not 100% sure I'm using this whole bit of script correctly, but if there are any thoughts around the multiple values, I would appreciate any ideas. I've been attempting to follow the instructions on this page.