<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rodrigo Fernandes on Medium]]></title>
        <description><![CDATA[Stories by Rodrigo Fernandes on Medium]]></description>
        <link>https://medium.com/@fernandes.manager?source=rss-dade7cbccad6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qItkcYQr_-6MwTkJm1LrXQ.jpeg</url>
            <title>Stories by Rodrigo Fernandes on Medium</title>
            <link>https://medium.com/@fernandes.manager?source=rss-dade7cbccad6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:04:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fernandes.manager/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Transform your heatmap analytics with data from the Google Maps API]]></title>
            <link>https://medium.com/@fernandes.manager/transform-your-heatmap-analytics-with-data-from-the-google-maps-api-ec013c211bf6?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec013c211bf6</guid>
            <category><![CDATA[google-api]]></category>
            <category><![CDATA[heatmap]]></category>
            <category><![CDATA[free-python-tutorials]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[google-maps]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 03:17:33 GMT</pubDate>
            <atom:updated>2023-12-15T03:17:33.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3u-Dpl43nICEbtqDDJMNw.jpeg" /></figure><h3>🌟 Introduction</h3><p>In the world of data, visualization is key to unlocking stories hidden within numbers and coordinates. Among various visualization techniques, one stands out for its ability to represent density and distribution: the heatmap. A heatmap turns quantitative data into a spectrum of colors, where intensity varies according to the concentration of points in a specific area. This technique is not only visually striking but also incredibly effective in revealing patterns and trends hidden in complex data sets.</p><p>Now, imagine combining the power of heatmaps with the vast amount of location data available through the Google Maps API. The Google Maps API is a robust tool that allows access to and manipulation of a wealth of location information, from geographic coordinates to data on establishments and traffic. When this data is integrated into a heatmap, it can provide deep insights on a variety of themes — from urban planning to marketing strategies and more.</p><p>In this article, we will explore how you can use the Google Maps API to collect location data and create informative and visually appealing heatmaps. With a practical example in Python, you will see how simple and powerful it is to transform raw data into comprehensible visualizations full of insights.</p><h3>🔍 Understanding the Opportunities</h3><p>Integrating location data with heatmaps opens up a range of opportunities for deeper and more detailed analyses in various fields. For example, in marketing, a heatmap can reveal which areas of a city have the highest concentration of your target audience, allowing for more targeted and effective advertising campaigns. For market analysts and urban researchers, these maps provide a clear view of where certain activities are thriving and where there might be gaps in the market.</p><p>On a more technical level, combining heatmaps with geospatial data allows identifying patterns of movement, points of interest, and even consumer behaviors. For local authorities or urban planners, this could mean a better understanding of how people interact with different city spaces, informing decisions on infrastructure and urban development.</p><p>The most exciting part is that this is just the surface of the potential of heatmaps powered by data from the Google Maps API. The flexibility and adaptability of this approach mean it can be applied in countless contexts, offering valuable insights that would be difficult to obtain through traditional data analysis methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoLMvvLC1TVZT39oBgg8cg.png" /><figcaption>Example of map generated by executing the script</figcaption></figure><h3>🛠️ What Will We Need?</h3><p>For this project, we will need some essential items:</p><ul><li><strong>Python:</strong> The programming language we will use to write our script.</li><li><strong>Googlemaps library:</strong> A Python client for accessing Google Maps services. Install with pip install googlemaps.</li><li><strong>Folium library:</strong> Used to create interactive maps. Install with pip install folium.</li><li><strong>Google Maps API Key: </strong>Necessary to access Google Maps services. Obtain it from the Google Cloud Console.</li><li><strong>Basic Python Knowledge: </strong>A basic understanding of Python will be helpful to follow along with the project.</li></ul><pre>!pip install folium geopy<br>!pip install matplotlib<br>!pip install googlemaps</pre><p>With these items, we will be ready to start creating our heatmaps.</p><h3>🚀 Starting the Project</h3><p>Now that we have all the necessary tools at our disposal, it’s time to roll up our sleeves and create our heatmap with data from the Google Maps API. We will break this down into a few essential steps.</p><h4>Step 1: Importing the Libraries</h4><p>We start by importing the necessary libraries. Googlemaps allows us to interact with the Google Maps API, while folium will be used to create interactive maps. Additionally, we import the HeatMap function from folium.plugins, which will be the core of our heatmap.</p><pre># Importing the libraries<br>import googlemaps<br>import folium<br>from folium.plugins import HeatMap</pre><h4>Step 2: Fetching Store Coordinates</h4><p>The function <strong>buscar_coordenadas_lojas</strong> is responsible for using the Google Maps API to fetch the coordinates of “Lojas Renner” stores in a given area. Here, api_key is your Google Maps API key, location is the coordinates of the center of the search area, and radius is the radius in meters defining the extent of the search.</p><pre># Function to fetch store coordinates<br>def buscar_coordenadas_lojas(api_key, location, radius):<br>    gmaps = googlemaps.Client(key=api_key)<br>    try:<br>        places_result = gmaps.places_nearby(location=location, radius=radius, keyword=&#39;Lojas Renner&#39;)<br>    except Exception as e:<br>        print(f&quot;Error searching for places: {e}&quot;)<br>        return []<br><br>    coordinates = []<br>    for place in places_result.get(&#39;results&#39;, []):<br>        lat = place[&#39;geometry&#39;][&#39;location&#39;][&#39;lat&#39;]<br>        lng = place[&#39;geometry&#39;][&#39;location&#39;][&#39;lng&#39;]<br>        coordinates.append((lat, lng))<br><br>    return coordinates</pre><h4>Step 3: Creating and Displaying the Heatmap</h4><p>The function <strong>criar_heatmap</strong> takes the store coordinates as input and generates an interactive map with a heatmap. First, we check if coordinates are available. Then, we create a folium map based on the coordinates of downtown São Paulo and apply the heatmap using the store coordinates.</p><pre># Function to create and display the heatmap<br>def criar_heatmap(coordinates):<br>    if not coordinates:<br>        print(&quot;No coordinates available to create the heatmap.&quot;)<br>        return None<br><br>    map = folium.Map(location=[-23.550520, -46.633308], zoom_start=12)<br>    HeatMap(coordinates).add_to(map)<br>    return map</pre><h4>Step 4: Running the Script</h4><p>This is where we put everything into action. Replace ‘<strong>YOUR_API_KEY_HERE</strong>’ with your Google Maps API key and set the coordinates of the center of the search area and the desired radius. Then, we call the functions to fetch the store coordinates and create the heatmap.</p><pre># Replace with your Google Maps API key<br>api_key = &#39;YOUR_API_KEY_HERE&#39;<br>location = &#39;-23.550520, -46.633308&#39;  # Coordinates of downtown São Paulo<br>radius = 50000  # 50 km radius for the search<br><br># Fetch coordinates<br>store_coordinates = buscar_coordenadas_lojas(api_key, location, radius)<br><br># Create and display the heatmap<br>map = criar_heatmap(store_coordinates)<br>map</pre><p>With this code, we are ready to create our heatmap based on data from the Google Maps API. Let’s go ahead and run it to see the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoLMvvLC1TVZT39oBgg8cg.png" /><figcaption>execution result</figcaption></figure><h4>✨ Conclusion</h4><p>In this article, we explored how to transform raw data into valuable insights using heatmaps with data from the Google Maps API. Throughout the process, we learned how to fetch store coordinates with the API, create and display an interactive heatmap with the folium library, and how all this can be applied in a variety of scenarios.</p><p>Integrating location data with heatmaps offers a powerful tool for analyzing and visualizing geospatial information. Whether it’s for targeted marketing strategies, data-informed urban planning, or urban mobility analyses, heatmaps with data from the Google Maps API can provide a deeper understanding of the world around us.</p><p>We encourage you to experiment and adapt the concepts presented here to your own needs and projects. Explore the features of the Google Maps API and take your analyses to the next level with interactive maps and engaging visualizations.</p><p>As we move forward in an increasingly data-driven world, the ability to transform information into insights is an essential skill. We hope this article has provided a valuable introduction to this skill and that you continue to explore and enhance your data analysis abilities.</p><p>Thank you very much for following this article, and good luck on your data analysis journeys with heatmaps and data from the Google Maps API!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec013c211bf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Guide to Seasonal Breakdown with Google Trends Data with Code]]></title>
            <link>https://medium.com/@fernandes.manager/ultimate-guide-to-seasonal-breakdown-with-google-trends-data-with-code-7a6dc8db3c7b?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a6dc8db3c7b</guid>
            <category><![CDATA[pytrend]]></category>
            <category><![CDATA[matplotlib-tutorial]]></category>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[google-trends]]></category>
            <category><![CDATA[free-python-tutorials]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 18:44:35 GMT</pubDate>
            <atom:updated>2023-12-11T18:48:15.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBkvycoAA0qCQZ9fuYb8Rg.jpeg" /></figure><h3>🌟 Introduction</h3><p>In the ever-evolving world of data analysis, Google Trends emerges as a powerful tool, providing valuable insights into user search behavior around the world. In this article, we will dive into the analysis of a Google Trends dataset focused on the keyword “Amazon.” Through this analysis, we aim to understand the trends and seasonal patterns associated with this popular e-commerce platform, offering a window into consumer interests and behaviors over time.</p><h3>🔍 Understanding the Opportunities</h3><p>The analysis of trend data, such as those offered by Google Trends, opens up a range of opportunities. For businesses and marketers, understanding these trends is crucial to aligning marketing strategies and identifying new markets. For researchers and data analysts, these insights can reveal patterns in consumer behavior and predict market changes. In the case of the keyword “Amazon,” a detailed analysis can offer a view into periods of peak interest, seasonal influences on consumer purchases, and much more.</p><h3>💡 Why am I so excited about this?</h3><p>The reason for my excitement about this project lies in the richness and dynamism of Google Trends data. The ability to track the popularity of a search term over time allows for a deeper understanding of changes in consumer preferences and interests. Moreover, the keyword “Amazon,” being an e-commerce giant, offers a fascinating field of study, reflecting not just purchasing trends but also the impact of global events, festivities, and seasonal changes on consumer behavior.</p><h3>🛠️ What Will We Need?</h3><p>To conduct our Google Trends data analysis, we utilize some essential tools and libraries in the field of data science:</p><ul><li><strong>Python: </strong>A versatile and widely used programming language in data analysis due to its simplicity and power.</li><li><strong>Pandas: </strong>A Python library that offers efficient and easy-to-use data structures and data manipulation tools, perfect for working with time series.</li><li><strong>StatsModels:</strong> Another Python library used for conducting time series decompositions, allowing us to identify trends and seasonal patterns.</li><li><strong>Matplotlib: </strong>A library for creating static, animated, and interactive visualizations in Python, used to plot the results of our analysis.<br>These tools form the foundation for our data exploration and enable us to perform complex analyses efficiently and intuitively.</li></ul><h3>📈 Importing and Preparing the Data</h3><p>The first step in our analysis was to import the Google Trends data. The dataset was obtained in CSV format, representing the popularity of the keyword “Amazon” over time. Here is the code used to load the data:</p><pre>import pandas as pd<br><br>file_path = &#39;your_file_path.csv&#39;<br>google_trends_data = pd.read_csv(file_path, skiprows=1)</pre><p>After importing, we faced the challenge of preparing the data for analysis. This involved converting the date column to an appropriate format and setting this column as the DataFrame’s index, facilitating subsequent operations with the time series:</p><pre>google_trends_data[&#39;Week&#39;] = pd.to_datetime(google_trends_data[&#39;Week&#39;])<br>google_trends_data.set_index(&#39;Week&#39;, inplace=True)</pre><p>With these steps, our data was ready for exploratory analysis and time series decomposition.</p><h3>🔎 Exploratory Analysis</h3><p>Before delving into the seasonal decomposition of the data, we conducted an exploratory analysis to better understand the dataset and lay the groundwork for more in-depth analyses. This phase is crucial as it allows us to identify patterns, anomalies, trends, and any peculiar characteristics of the data that might influence subsequent analysis stages.</p><p><strong>First Steps<br></strong>Initially, we examined the first few lines of our data to check its structure and ensure it was loaded correctly:</p><pre>google_trends_data.head()</pre><p>This simple command allowed us to view the dataset’s structure, showing the weeks (index) and the search popularity values for the keyword “Amazon”.</p><p><strong>Consistency Check<br></strong>Next, we checked the consistency and integrity of the data. This involved checking for missing or anomalous values that could distort the analysis:</p><pre>google_trends_data.isnull().sum()</pre><p>Fortunately, we found no missing values in our dataset, indicating it was complete and ready for a more detailed analysis.</p><p><strong>Initial Visualization<br></strong>To get a general idea of the trends over time, we plotted the time series:</p><pre>import matplotlib.pyplot as plt<br><br>plt.figure(figsize=(12, 6))<br>plt.plot(google_trends_data[&#39;Amazon: (Worldwide)&#39;], label=&#39;Search Popularity&#39;)<br>plt.title(&#39;Search Popularity for &quot;Amazon&quot; Over Time&#39;)<br>plt.xlabel(&#39;Date&#39;)<br>plt.ylabel(&#39;Popularity&#39;)<br>plt.legend()<br>plt.show()</pre><p>This initial visualization provided us with an immediate view of the variation in search popularity over time, setting the stage for a more in-depth analysis through the decomposition of the time series.</p><h3>🔄 Time Series Decomposition</h3><p>After the initial exploratory analysis, the next step was to decompose the time series to better understand its components: trend, seasonality, and noise. Time series decomposition is a powerful technique that allows us to separate and analyze these distinct elements, providing a deeper understanding of the underlying dynamics of the data.</p><p><strong>Introduction to Decomposition<br></strong>Time series decomposition is a statistical method that disaggregates a time series into several components. In this case, we used the additive model, which assumes that the time series is a combination of its trend, seasonality, and residual (or noise) components:</p><pre>from statsmodels.tsa.seasonal import seasonal_decompose<br><br># Time series decomposition<br>decomposition = seasonal_decompose(time_series, model=&#39;additive&#39;, period=26)</pre><p><strong>Choosing the Decomposition Period<br></strong>Originally, we tried to decompose the series with a period of 52 weeks, hoping to capture annual seasonal patterns. However, due to the size limitation of the data, we adjusted the period to 26 weeks, allowing us to perform the decomposition with the available dataset:</p><pre>decomposition = seasonal_decompose(time_series, model=&#39;additive&#39;, period=26)</pre><p><strong>Visualization of Components<br></strong>After the decomposition, we visualized each of the components to analyze and interpret the trends, seasonal patterns, and noises:</p><pre>plt.figure(figsize=(14, 7))<br>plt.subplot(411)<br>plt.plot(time_series, label=&#39;Original&#39;)<br>plt.legend(loc=&#39;best&#39;)<br>plt.subplot(412)<br>plt.plot(decomposition.trend, label=&#39;Trend&#39;)<br>plt.legend(loc=&#39;best&#39;)<br>plt.subplot(413)<br>plt.plot(decomposition.seasonal, label=&#39;Seasonality&#39;)<br>plt.legend(loc=&#39;best&#39;)<br>plt.subplot(414)<br>plt.plot(decomposition.resid, label=&#39;Residuals&#39;)<br>plt.legend(loc=&#39;best&#39;)<br>plt.tight_layout()<br>plt.show()</pre><p>This visualization was crucial for understanding how different components influence the time series and reveal hidden patterns not immediately apparent in the original series.</p><p>With the decomposition of the time series, we were able to unravel the underlying structure of the data, offering valuable insights into the behavior of searches related to “Amazon”. In the next step, we will explore the interpretation of these results and the conclusions we can draw from them. If everything is fine with this section, I can proceed to the conclusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uSNn7KFXnYkvv4-P" /></figure><h3>📊 Interpretation of Results</h3><h3>The decomposition of the time series provided us with three main components: trend, seasonality, and residuals. The careful interpretation of these components is essential to understand what the data are telling us about the search popularity for the keyword “Amazon.”</h3><h3>Interpreting the Trend</h3><p>The trend component reveals how the search popularity for “Amazon” changed over time, independent of seasonal or random fluctuations. By analyzing the trend graph, we could observe whether there was a consistent increase or decrease in search popularity over the study period. This could indicate a general growth in interest for “Amazon” or a gradual change in consumer search habits.</p><h3>Analyzing Seasonality</h3><p>The seasonal component showed us patterns that repeat at regular intervals — in this case, every 26 weeks. Analyzing this component is crucial for identifying specific times of the year when searches for “Amazon” peaked or dipped. These seasonal patterns could be linked to specific events, such as promotions, holidays, or global shopping events like Black Friday.</p><h3>Evaluating Residuals Residuals</h3><p>represent the part of the time series that is not explained by the trend or seasonality. In examining the residuals, we sought to identify any unusual patterns or anomalies that might suggest external factors influencing the searches or potential areas for future investigation.</p><h3>🎯 Conclusion</h3><p>Through our analysis of Google Trends data for the keyword “Amazon”, we have been able to unravel significant patterns and gain valuable insights into consumer behavior related to this e-commerce giant.</p><p><strong>Summary of Key Insights Trend:</strong></p><p>We observed the general trend in search popularity, which may indicate a growth or decline in overall interest in “Amazon” over the analyzed period. Seasonality: We identified clear seasonal patterns, highlighting specific times of the year when searches for “Amazon” significantly increase or decrease. These patterns are crucial for understanding consumer buying behavior and planning marketing strategies and inventory management. Residuals: The analysis of residuals revealed variations not explained by trends or seasonality, suggesting external factors that could influence interest in “Amazon”. Implications and Next Steps The insights obtained in this analysis have several practical implications. For marketing professionals and business strategists, understanding these patterns can help optimize advertising campaigns and inventory strategies. For market analysts and researchers, the results provide a basis for more in-depth studies on the impact of global events and market trends on consumer behavior.</p><p>Furthermore, this analysis paves the way for future investigations, such as analyzing trend data for other keywords or combining this data with other data sources for a more holistic understanding of the market.</p><h3>Final Conclusion</h3><p>This article demonstrated the power of Google Trends data analysis and how time series decomposition techniques can reveal profound insights into search patterns. As the world of data continues to evolve, tools and techniques like the ones we have used here will remain invaluable for uncovering the secrets hidden in the vast oceans of available data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a6dc8db3c7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring YouTube Data with Python: A Journey with the YouTube API]]></title>
            <link>https://medium.com/@fernandes.manager/exploring-youtube-data-with-python-a-journey-with-the-youtube-api-3f120f4c68ad?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f120f4c68ad</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[youtube-api]]></category>
            <category><![CDATA[data-exploration]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 16:08:35 GMT</pubDate>
            <atom:updated>2023-12-07T16:08:35.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o4E2CCKdE-__ou7Jjo5rBw.jpeg" /></figure><h3>🌟 Introduction</h3><p>In this article, we will dive into the fascinating world of data extraction using the YouTube API. The digital era provides us with an incredible amount of data, and YouTube, as the largest video sharing platform, is a treasure trove of information. Let’s explore how we can use Python to extract valuable data from YouTube videos, focusing on the term ‘PicPay’.</p><h3>🔍 Understanding the Opportunity for Use</h3><p>With the rise of Big Data, the ability to extract, analyze, and interpret data from platforms like YouTube can be extremely valuable. Whether for marketing purposes, trend analysis, or simple curiosity, understanding what makes certain content popular can provide insightful revelations. In this project, we will discover how to extract data such as views, likes, and much more, using the YouTube API.</p><h3>💡 Why I Am So Excited About the Project</h3><p>This project is exciting for several reasons. Firstly, it allows us to interact with one of the most powerful and comprehensive APIs available today. Moreover, analyzing data from YouTube has vast potential, from understanding market trends to identifying user behavior patterns. This opens up a world of possibilities for data professionals, marketers, and the curious alike.</p><h3>🛠️ What We Will Need to Execute</h3><p>Before diving into the code, we need to prepare our environment. You will need:</p><ul><li>Python installed on your machine.</li><li>A Google Cloud API key to access the YouTube API.</li><li>The googleapiclient package installed in your Python environment.</li></ul><h3>🧑‍💻 Exploring the YouTube API with Python: A Step-by-Step Guide</h3><p>The power of Python in data analysis is unquestionable. In our project, we use this versatile language to interact with the YouTube API and extract fascinating data. Let’s delve into the code explanation and explore an example of the result you can expect when executing it. Remember, the complete code is available on GitHub for reference and use.</p><ol><li><strong>Initial Setup and Authentication<br></strong>The script begins by importing the necessary libraries and setting the API key for authentication on the YouTube API. This key is essential for accessing the API’s resources.</li></ol><pre>from googleapiclient.discovery import build<br>import datetime<br><br>api_key = &#39;YOUR_API_KEY_HERE&#39;<br>youtube = build(&#39;youtube&#39;, &#39;v3&#39;, developerKey=api_key)</pre><p><strong>2. Defining the Time Period and Search Parameters<br></strong>We calculate the date one year ago and format it to use as a filter in our search, which is focused on the term ‘PicPay’. Additionally, we set up the search to return the top 20 most viewed videos published after this date.</p><pre>one_year_ago = datetime.datetime.now() - datetime.timedelta(days=365)<br>start_date = one_year_ago.strftime(&#39;%Y-%m-%dT%H:%M:%SZ&#39;)<br><br>request = youtube.search().list(<br>    q=&#39;PicPay&#39;,<br>    part=&#39;snippet&#39;,<br>    maxResults=20,<br>    order=&#39;viewCount&#39;,<br>    publishedAfter=start_date,<br>    type=&#39;video&#39;<br>)</pre><p><strong>3. Executing the Search and Processing the Results<br></strong>After executing the search, we iterate over each video found. For each, we obtain detailed information such as the title, video ID, and statistics like views, likes, among others.</p><pre>response = request.execute()<br><br>for item in response.get(&#39;items&#39;, []):<br>    # Processing each video here</pre><p>Example of Script Output When you run the script, you will get outputs like these, offering a detailed view of the videos related to the term ‘<strong>PicPay</strong>’:</p><ul><li>Title: Switch to PicPay!, Video ID: mPQ6fUovVB8</li><li>Title: Start the year with PicPay and your bills in the green., Video ID: P2gy0Njanxo</li><li>…</li><li>Title: How the new PICPAY PIGGY BANKS function works!, Video ID: bE1FWrzaM5E</li></ul><p>Conclusion and Access to the Complete Code This guide provides a glimpse into the possibilities with the YouTube API. The script is just an example of what can be achieved with the combination of Python and powerful APIs. To explore the complete code and adapt it to your needs, visit our repository on GitHub.</p><p><a href="https://github.com/rmouraaa/youtubedata.git">GitHub - rmouraaa/youtubedata: YouTube Video Statistics Fetcher</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f120f4c68ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The death of Canvas has been declared with this logo generator.
Project with code on github]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@fernandes.manager/how-to-create-a-powerful-brand-generator-using-dall-e-3-and-outperforming-canva-d0bc63362c15?source=rss-dade7cbccad6------2"><img src="https://cdn-images-1.medium.com/max/1920/1*NmYZpNB6Y1gve6z4FP9SOg.jpeg" width="1920"></a></p><p class="medium-feed-snippet">Imagine you are an entrepreneur with limited resources, interested in creating your own brand. You&#x2019;ve sketched out what you&#x2019;d like on&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@fernandes.manager/how-to-create-a-powerful-brand-generator-using-dall-e-3-and-outperforming-canva-d0bc63362c15?source=rss-dade7cbccad6------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@fernandes.manager/how-to-create-a-powerful-brand-generator-using-dall-e-3-and-outperforming-canva-d0bc63362c15?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0bc63362c15</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[logo-generator]]></category>
            <category><![CDATA[logo]]></category>
            <category><![CDATA[dalle-3]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Sun, 26 Nov 2023 13:43:08 GMT</pubDate>
            <atom:updated>2023-11-27T10:29:18.960Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Branded Content: The Renaissance of E-Books in Marketing Strategies]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@fernandes.manager/branded-content-the-renaissance-of-e-books-in-marketing-strategies-04bceac1a844?source=rss-dade7cbccad6------2"><img src="https://cdn-images-1.medium.com/max/1920/1*bLicLykHDPBhDuVM_65y4g.jpeg" width="1920"></a></p><p class="medium-feed-snippet">Branded Content: This term is undoubtedly one that you&#x2019;ve heard frequently in recent years, as content has never been more crucial.</p><p class="medium-feed-link"><a href="https://medium.com/@fernandes.manager/branded-content-the-renaissance-of-e-books-in-marketing-strategies-04bceac1a844?source=rss-dade7cbccad6------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@fernandes.manager/branded-content-the-renaissance-of-e-books-in-marketing-strategies-04bceac1a844?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/04bceac1a844</guid>
            <category><![CDATA[ebook-generator]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[ai-web-app]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 15:29:34 GMT</pubDate>
            <atom:updated>2023-11-24T15:29:34.660Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ Exploratory Data Analysis: Unveiling the Impact of Taylor Swift’s Eras Tour on the Music…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@fernandes.manager/an%C3%A1lise-explorat%C3%B3ria-de-dados-desvendando-o-impacto-da-eras-tour-de-taylor-swift-na-ind%C3%BAstria-b8e69fbdc7ba?source=rss-dade7cbccad6------2"><img src="https://cdn-images-1.medium.com/max/1920/1*OAeiIlFMnLdnInk6WePuLw.jpeg" width="1920"></a></p><p class="medium-feed-snippet">&#x1F680; Get ready to embark on an exciting data analysis journey!</p><p class="medium-feed-link"><a href="https://medium.com/@fernandes.manager/an%C3%A1lise-explorat%C3%B3ria-de-dados-desvendando-o-impacto-da-eras-tour-de-taylor-swift-na-ind%C3%BAstria-b8e69fbdc7ba?source=rss-dade7cbccad6------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@fernandes.manager/an%C3%A1lise-explorat%C3%B3ria-de-dados-desvendando-o-impacto-da-eras-tour-de-taylor-swift-na-ind%C3%BAstria-b8e69fbdc7ba?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8e69fbdc7ba</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[taylor-swift]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 15:03:15 GMT</pubDate>
            <atom:updated>2023-11-06T14:43:50.429Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ Revolutionize your strategies with pytrends]]></title>
            <link>https://medium.com/@fernandes.manager/mudando-a-percep%C3%A7%C3%A3o-sobre-produtos-e-servi%C3%A7os-com-pytrends-bbf6764e4a91?source=rss-dade7cbccad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf6764e4a91</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-trends]]></category>
            <category><![CDATA[tendencias]]></category>
            <category><![CDATA[pytrend]]></category>
            <dc:creator><![CDATA[Rodrigo Fernandes]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 21:27:52 GMT</pubDate>
            <atom:updated>2023-11-24T18:00:56.851Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIitGEnOIzmT2BOshQn9yA.jpeg" /></figure><p>Hello everyone! I’m Rodrigo, a data scientist and innovation specialist, and I want to introduce one of my favorite tools: PyTrends. If you’ve heard of Google Trends, then you’ll love discovering the capabilities of this library.</p><p>Google Trends is an incredible platform for analyzing interest in certain topics over time. Whether it’s a search term, a specific term, or even a company, you can see how the world’s curiosity changes. However, PyTrends takes this to another level by allowing us to automate the process and extract insights directly into our Python scripts.</p><h3>🔍 What is PyTrends?</h3><p>PyTrends is an unofficial API of Google Trends, which allows us to extract trending result reports. One of the great advantages? Automation! With it, you can quickly collect valuable data that would be time-consuming if done manually on the Google Trends website.</p><h3>📊 Understanding PyTrends Data:</h3><p>One of the first things I learned using PyTrends is how to interpret the values. They are relative, not absolute, on a scale of 0 to 100. A value of 100 represents the peak of popularity for a search in a particular location.</p><h3>💡 Why am I so excited about this?</h3><p>Manually searching on the Google Trends website can be a time-consuming process, especially in large-scale projects. With PyTrends, this effort is drastically reduced, making it easier to obtain faster insights. And to demonstrate its effectiveness, here are some practical examples:</p><h3>📈 Practical Examples with Contextualization:</h3><h3><strong>Example 01: Keyword Suggestions</strong></h3><p>Often, when we’re planning a campaign or research, we want to know which related terms might be relevant. In this example, we use PyTrends to obtain keyword suggestions related to the term “banana”. The following code initializes PyTrends, requests suggested keywords, and displays the top 5 suggestions.</p><pre># Install<br>!pip install pytrends<br><br># Import - Pandas e Pytrends<br>import pandas as pd<br>from pytrends.request import TrendReq<br>pytrend = TrendReq()<br><br>#serach &#39;banana&#39;<br>keywords = pytrend.suggestions(keyword=&#39;Banana&#39;)<br>df = pd.DataFrame(keywords)<br>df.head(5)</pre><p>🔥 Execution Result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/0*tikXhX80l24WL8IX" /><figcaption>Google Colab</figcaption></figure><h3>👩💻 Insights from the Execution</h3><p>Upon examining the results, we encounter columns like mid, title, and type. Here’s a guide to understand and interpret these fields:</p><ul><li>mid: This is a unique identifier assigned behind the scenes for each suggestion returned by Google. It may not have intrinsic value for a superficial analysis, but it can be useful for more advanced queries or to track specific suggestions in future searches.</li><li>title: This is the core of our output. The title column provides the exact suggestion related to the searched keyword. In our case, when searching for “banana,” we see suggestions like “Banana pepper” and “Savannah Bananas”. This gives us a window to understand the different ways in which the term “banana” is used and searched by people around the world. For example, while some may be searching for the fruit, others might be looking for a baseball team.</li><li>type: This column categorizes the suggestion into a specific type. This is vital for understanding the context in which the suggestion is placed. For example:</li><li>Fruit: This category tells us that the suggestion refers to the fruit.</li><li>Food: This is a broader category indicating that the suggestion is related to food in general.</li><li>Topic: This type suggests that the keyword might be a topic of discussion or interest.</li><li>Baseball team: This provides a specific context, showing that the suggestion is about sports, specifically a baseball team.</li></ul><h3>Example 02: Discovering the Global Trends of 2022</h3><p>Identifying the main global trends can be crucial for understanding consumer behavior and adapting strategies. In the following code, we request PyTrends to provide us with the top trending topics for the year 2022. Additionally, we set parameters to define the language of the results and the geographical region of interest (in this case, globally).</p><pre>df = pytrend.top_charts(2022, hl=&#39;en-US&#39;, tz=300, geo=&#39;GLOBAL&#39;)<br>df.head()</pre><p>🔥 Execution Result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/0*jBk74lpubvDxBxTG" /><figcaption>Google Colab</figcaption></figure><h3>Example 03: Comparing Interest in Fruits by Region</h3><p>Para entender as preferências regionais, podemos comparar o interesse de pesquisa de diferentes termos. Aqui, estamos avaliando o interesse relativo de várias frutas em diferentes partes do mundo. O script constrói um conjunto de dados com o interesse regional para uma lista de frutas e, em seguida, visualiza esses dados em um gráfico de barras, facilitando a identificação de padrões e preferências regionais.</p><pre># itens<br>kw_list=[&#39;Banana&#39;, &#39;Abacate&#39;, &#39;Ameixa&#39;, &#39;Laranja&#39;, &#39;Uva&#39;]<br>pytrend.build_payload(kw_list, timeframe=&#39;today 1-m&#39;)<br>regiondf = pytrend.interest_by_region()<br>regiondf = regiondf[(regiondf != 0).all(1)]<br>regiondf.dropna(how=&#39;all&#39;,axis=0, inplace=True)<br># Visualize<br>regiondf.plot(figsize=(20, 12), y=kw_list, kind =&#39;bar&#39;)</pre><h3>🛠️ Favorite Features of Pytrends:</h3><ul><li><strong>Interest Over Time: </strong>This feature allows you to visualize the evolution of interest in a term over the years. It’s particularly useful for spotting trends, understanding how interest in a topic changes seasonally or annually, and identifying peaks and troughs in popularity. This can help in predicting future trends or understanding past patterns.</li><li><strong>Interest by Region: </strong>This tool is invaluable for discovering which locations show the highest interest in your search term. It can be used to tailor marketing strategies, understand regional differences, and identify new markets or areas of opportunity. For businesses and researchers alike, knowing where a term is most popular can direct efforts and resources more effectively.</li><li><strong>Related Topics and Queries: </strong>These are essential for understanding what is associated with your search term. They provide insights into what people are also interested in when they search for your primary term. This feature helps in expanding your understanding of a subject, identifying related areas of interest, and even discovering new angles or niches within a topic.</li><li><strong>Top Charts and Keyword Suggestions:</strong> These are great for grasping the broader context of your search. Top Charts show the most popular searches over a given period, offering insights into public interests and trends. Keyword Suggestions, on the other hand, are useful for expanding your research, finding related terms, and refining your search strategy to be more effective.</li></ul><p>These tools collectively make Pytrends a powerful resource for anyone looking to harness the vast amount of data available through Google searches. Whether it’s for market research, academic study, or personal interest, Pytrends offers a window into the world’s search behavior.</p><h3>🚫 Limitations and Challenges</h3><p>Like any tool, there are limitations to Pytrends. For instance, it’s important to distinguish between search terms and topics. Also, if you try to input a keyword exceeding 100 characters, you will encounter an error. However, understanding these nuances only enhances our work. Recognizing the tool’s limitations helps in planning more effective searches and in interpreting the data accurately.</p><h3>🔥 Conclusion</h3><p>The discovery of Pytrends has revolutionized the way I approach trend analysis. If you haven’t tried it yet, I highly recommend exploring its capabilities. If you’re already a user, I would love to hear about your experiences and tips! So, are you ready to embark on this trend journey with me? Comment below or send a message. Let’s exchange ideas and elevate our analyses to a new level!</p><p>👩💻👨💻 #DataScientist #Pytrends #GoogleTrends #DataAnalysis</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf6764e4a91" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>