Python EXIF dump tool + IG scraping approach
by Juan13 - Monday April 14, 2025 at 11:29 PM
#1
Hey all,

First post here been lurking for a while just taking in some of the solid stuff people share. I'm currently diving deeper into osint, mostly around metadata extraction and profiling from social media content.
As a small contribution, here's a quick Python script I wrote to automate exif data extraction using exiftol it processes all image files in a folder and saves the metadata in a clean json

Script
import os
import json
import subprocess

def extract_exif_from_folder(folder_path, output_json):
    data = {}
    for filename in os.listdir(folder_path):
        if filename.lower().endswith((".jpg", ".jpeg", ".png")):
            filepath = os.path.join(folder_path, filename)
            try:
                result = subprocess.run(
                    ["exiftool", "-json", filepath],
                    stdout=subprocess.PIPE,
                    stderr=subprocess.PIPE,
                    text=True
                )
                if result.stdout:
                    exif_data = json.loads(result.stdout)[0]
                    data[filename] = exif_data
            except Exception as e:
                print(f"[!] Error reading {filename}: {e}")
    with open(output_json, "w") as f:
        json.dump(data, f, indent=4)
    print(f"[+] Metadata written to {output_json}")

extract_exif_from_folder("images", "output_exif.json")

now onto a quick question:
I'm running some passive scraping on public Instagram profiles without logging in — using instaloader
plus spoofed headers. Even with proxy rotation (residential and datacenter) and randomized delays I’m still getting hit with 429s after a short burst.
Anyone here got a more solid method for avoiding those blocks without relying on IG accounts or session cookies?
Not here to beg or leech — just throwing in a small tool and hoping to trade some ideas.
Might share some TikTok correlation stuff later if anyone’s into that.

Juan13
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Greetings from Cyprus Tr28 0 106 9 hours ago
Last Post: Tr28
  Hi to alls !!! mav00k 0 120 Today, 08:47 AM
Last Post: mav00k
  Elsa Is FBI - Im FBI Elsa 0 279 Yesterday, 01:12 PM
Last Post: Elsa
  yooo, portugal here kuzabrutu 0 210 Yesterday, 12:42 PM
Last Post: kuzabrutu
  helo Spedza 0 193 Apr 29, 2026, 04:52 PM
Last Post: Spedza

Forum Jump:


 Users browsing this forum: 1 Guest(s)