This code elaborates about gathering data from google trends then storing it in google cloud sql and processing the stored data using python.
GoogleTrendsD Google trends API's and other scraping codes
https://medium.com/google-news-lab/what-is-google-trends-data-and-what-does-it-mean-b48f07342ee8
https://ahrefs.com/blog/how-to-use-google-trends-for-keyword-research/
https://towardsdatascience.com/reconstruct-google-trends-daily-data-for-extended-period-75b6ca1d3420