Python - How to import 'TrendReq' -- pytrends

Import TrendReq

To import TrendReq, Add the following line to the top of your code.

from pytrends.request import TrendReq

 

For more information about TrendReq:
pytrends TrendReq