0% found this document useful (0 votes)
6 views1 page

Instagram Reporter Code

This Python script is designed for collecting user input for a target username and account name, with an optional proxy configuration. It includes functionality to load proxies from a specified file and randomly generates email addresses for use in requests. The script also sets up headers for HTTP requests and includes a loop for continuous operation, handling exceptions with delays.

Uploaded by

thort5702
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Instagram Reporter Code

This Python script is designed for collecting user input for a target username and account name, with an optional proxy configuration. It includes functionality to load proxies from a specified file and randomly generates email addresses for use in requests. The script also sets up headers for HTTP requests and includes a loop for continuous operation, handling exceptions with delays.

Uploaded by

thort5702
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Code

import requests
import random
import os
import time
from datetime import datetime

# Color configuration for terminal UI


rd, gn, lgn, yw, lrd, be, pe = '\033[00;31m', '\033[00;32m', '\033[01;32m', '\033[01;33m', '\033[01;31m', '\033[00;3
cn = '\033[00;36m'

def banner():
[Link]('clear')
print("ASCII BANNER")

banner()

# Input collection
target_user = input('Enter target username: ')
account_name = input('Enter account name: ')
use_proxy = input('Use proxy? [Y/N]: ').lower()

proxy_list = []
protocol = ""

if use_proxy == 'y':
protocol = input('Protocol (socks4, socks5, http): ').strip()
proxy_file = input('Enter Proxy Filename: ').strip()
try:
with open(proxy_file, 'r') as f:
proxy_list = [[Link]() for line in f if [Link]()]
print(f"{len(proxy_list)} proxies loaded.")
except FileNotFoundError:
print('File not found. Continuing without proxies.')
use_proxy = 'n'

ua_list = [
'Mozilla/5.0 (Linux; Android 10; SM-G960F) AppleWebKit/537.36',
'Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15',
'Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36'
]

report_count = 0

while True:
try:
now = [Link]()
ts = str([Link](now)).split('.')[0]

random_id = "".join([Link]('abcdefghijklmnopqrstuvwxyz0123456789') for _ in range(10))


email = f"{random_id}@[Link]"

headers = {
'Host': '[Link]',
'user-agent': [Link](ua_list),
'content-type': 'application/x-www-form-urlencoded'
}

data = {
'inputEmail': email,
'__spin_t': ts
}

[Link](1)

except Exception:
[Link](5)

You might also like