Closed MacroMuppet closed 5 years ago
Fixed. Original Code:.... Line 688 pytrends.build_payload(kw_list, cat=0, timeframe=date_range[0], geo='', gprop='news')
Fixed Code (DELETE BOLD).... Line 688 pytrends.build_payload(kw_list, cat=0, timeframe=date_range[0], geo='', gprop='news')
Yes, I setup pytrends
to search for news
by default. If you are searching for a topic that won't appear in the news, you'll need to change the code. Thanks for the fix!
Hi! Thanks for all your work. Great script.
When analyzing the CHGG stock vs search term Chegg I get an error ( full error below).
It doesn't give the failed "There are no search terms" because there are search terms ( link to term, https://trends.google.com/trends/explore?date=today%205-y&geo=US&q=chegg ).
But it won't take that search results and index it to the chart... it works for AMZN and Microsoft and broader search terms ie (college) but it yields electoral college, and college football as search terms.
Thanks for all your help in advance.
AttributeError Traceback (most recent call last)