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
  Hi there! P4l4d1n 0 71 7 hours ago
Last Post: P4l4d1n
  Sup phas3lock 0 63 10 hours ago
Last Post: phas3lock
  Greetings!! D4rkHermes 0 86 Yesterday, 09:38 PM
Last Post: D4rkHermes
  Hi from france zynxdagoatt 0 112 Yesterday, 10:19 AM
Last Post: zynxdagoatt
  I am not FBI userc8r8 0 212 May 01, 2026, 10:53 PM
Last Post: userc8r8

Forum Jump:


 Users browsing this forum: 1 Guest(s)