<?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: Shaffan</title>
    <description>The latest articles on DEV Community by Shaffan (@shaffan).</description>
    <link>https://dev.to/shaffan</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%2F1152615%2Fe4063d46-8a79-42a3-85f4-7514e261222e.jpeg</url>
      <title>DEV Community: Shaffan</title>
      <link>https://dev.to/shaffan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shaffan"/>
    <language>en</language>
    <item>
      <title>A Simple Instagram Tracking Script Written in Python</title>
      <dc:creator>Shaffan</dc:creator>
      <pubDate>Fri, 05 Jul 2024 01:56:17 +0000</pubDate>
      <link>https://dev.to/shaffan/a-simple-instagram-tracking-script-written-in-python-in9</link>
      <guid>https://dev.to/shaffan/a-simple-instagram-tracking-script-written-in-python-in9</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftittxxd7sbe73yq44sk1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftittxxd7sbe73yq44sk1.png" alt="proof of concept" width="800" height="324"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python3 main.py -h
usage: Instagram Tracker [-h] -u USERNAME

📸 an Instagram tracker that logs any changes to an Instagram account
(followers, following, posts, and bio)

options:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        The username of the account to track

🤝 Contribute: https://github.com/ibnaleem/instatracker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;You must login to &lt;em&gt;your&lt;/em&gt; Instagram account in order to properly scrape someone else's Instagram account. This is due to Instagram blocking &lt;code&gt;HTTPS GET&lt;/code&gt; requests from unauthenticated cookies. Your login information is never stored. See more &lt;a href="https://github.com/ibnaleem/instatracker/blob/main/main.py#L51C1-L56C136" rel="noopener noreferrer"&gt;here&lt;/a&gt; and &lt;a href="https://github.com/instaloader/instaloader/blob/master/instaloader/instaloadercontext.py#L253C1-L338C43" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can always create/use an alt-account for the login.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.python.org/downloads/" rel="noopener noreferrer"&gt;Install Python if you don't have it already&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Clone this repository:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git clone https://github.com/ibnaleem/instatracker.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install dependencies:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ pip install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Set &lt;code&gt;user&lt;/code&gt; &amp;amp; &lt;code&gt;passwd&lt;/code&gt; field on &lt;a href="https://github.com/ibnaleem/instatracker/blob/main/main.py#L56" rel="noopener noreferrer"&gt;line 56&lt;/a&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR INSTAGRAM USERNAME&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;passwd&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR INSTAGRAM PASSWORD&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;# this allows us to access &amp;amp; scrape Instagram.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Run the script
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 main.py -u USERNAME
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Automated Logging
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/ibnaleem/instatracker" rel="noopener noreferrer"&gt;InstaTracker&lt;/a&gt; not only displays all modifications an Instagram account makes directly to the terminal (e.g., &lt;em&gt;USERNAME has unfollowed 1 person&lt;/em&gt;), but it also records these changes in a text file, including the date and time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;------2024-06-30 01:01:13.659694+00:00------
johndoe has 100
johndoe is following 100 people
johndoe has 0 posts
johndoe has the following bio: this is my biography
------2024-06-31 02:03:15.761715+00:00------
johndoe has lost 2 followers (100 followers --&amp;gt; 98 followers)
------2024-06-31 05:03:15.761715+00:00------
johndoe has gained 5 followers (98 followers --&amp;gt; 103 followers)
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This script checks for any changes every 5 minutes because Instagram's firewall starts blocking requests that are sent too quickly. You can manually update this &lt;a href="https://github.com/ibnaleem/instatracker/blob/main/main.py#L70" rel="noopener noreferrer"&gt;here&lt;/a&gt;, but do not be surprised if the script stops working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built With
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.python.org/" rel="noopener noreferrer"&gt;Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/instaloader/instaloader" rel="noopener noreferrer"&gt;Instaloader&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Textualize/rich" rel="noopener noreferrer"&gt;Rich&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  LICENSE
&lt;/h2&gt;

&lt;p&gt;This repository is under the &lt;a href="https://github.com/ibnaleem/instatracker/blob/main/LICENSE" rel="noopener noreferrer"&gt;MIT License&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Created By
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/shaffan-aleem-b7a852255/" rel="noopener noreferrer"&gt;Ibn Aleem&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>security</category>
      <category>cybersecurity</category>
    </item>
    <item>
      <title>An anonymous SMS sending tool with a WebGUI</title>
      <dc:creator>Shaffan</dc:creator>
      <pubDate>Sun, 03 Sep 2023 15:09:41 +0000</pubDate>
      <link>https://dev.to/shaffan/an-anonymous-sms-sending-tool-with-a-webgui-3i1c</link>
      <guid>https://dev.to/shaffan/an-anonymous-sms-sending-tool-with-a-webgui-3i1c</guid>
      <description>&lt;p&gt;Send an anonymous text message to anyone around the world. Fully open-sourced, contributors are needed&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ibnaleem/FreeSMS" rel="noopener noreferrer"&gt;https://github.com/ibnaleem/FreeSMS&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>python</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
