<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexandra Brugés</title>
    <description>The latest articles on DEV Community by Alexandra Brugés (@alexa_bruges).</description>
    <link>https://dev.to/alexa_bruges</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1058947%2Fe3f18c34-bb1a-4a7d-bd10-83c582db83d8.jpg</url>
      <title>DEV Community: Alexandra Brugés</title>
      <link>https://dev.to/alexa_bruges</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexa_bruges"/>
    <language>en</language>
    <item>
      <title>Instagram Investigation</title>
      <dc:creator>Alexandra Brugés</dc:creator>
      <pubDate>Tue, 04 Apr 2023 19:06:30 +0000</pubDate>
      <link>https://dev.to/alexa_bruges/instagram-investigation-3i9g</link>
      <guid>https://dev.to/alexa_bruges/instagram-investigation-3i9g</guid>
      <description>&lt;p&gt;hello friends, I'm trying to do a social data investigation in python, I need to get the reels data, not the reel but the stats, like views, comments and publish date, I was trying to use instaloader but this code doesn't seem to work, it makes insta feel like I have been hacked. the accounts I want the info are infact public so I was wondering if you guys have an idea of how this can be avoided, or if there's a easier way to do this. &lt;/p&gt;

&lt;p&gt;`profile = Profile.from_username(L.context, PROFILE)&lt;/p&gt;

&lt;h1&gt;
  
  
  Obtain metadata of the last 50 reels
&lt;/h1&gt;

&lt;p&gt;reels = profile.get_reels()&lt;/p&gt;

&lt;h1&gt;
  
  
  Create dictionary to store reels by date
&lt;/h1&gt;

&lt;p&gt;reels_by_date = {}&lt;/p&gt;

&lt;p&gt;for reel in reels:&lt;br&gt;
    # Convert timestamp to datetime object&lt;br&gt;
    date = datetime.fromtimestamp(reel.date)&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Add reel to dictionary&lt;br&gt;
if date.date() not in reels_by_date:&lt;br&gt;
    reels_by_date[date.date()] = [reel]&lt;br&gt;
else:&lt;br&gt;
    reels_by_date[date.date()].append(reel)&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Print reels by date&lt;br&gt;
&lt;/h1&gt;

&lt;p&gt;for date, reels in reels_by_date.items():&lt;br&gt;
    print(f"Reels for {date}:")&lt;br&gt;
    for reel in reels:&lt;br&gt;
        print(f"  - Reel {reel.shortcode} has {reel.views} views and {reel.comments} comments.")`&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
