擅长:python、mysql、java
<pre><code># import the TrendReq method from the pytrends request module
from pytrends.request import TrendReq
# execute the TrendReq method by passing the host language (hl) and timezone (tz) parameters
pytrends = TrendReq(hl='en-US', tz=360)
kw_list = ["covid"]
pytrends.build_payload(kw_list, cat=0, timeframe='2021-02-01 2021-07-09', geo='BR', gprop='')
gt_o3_ytd1 = pytrends.interest_over_time()
gt_o3_ytd1
</code></pre>