Tired of manually screenshotting Instagram profiles/posts and WhatsApp chats?
Let NIRMAS do the creepy work for you. It logs in, scrolls, and snatches every image while you pretend you're not a stalker.....just donβt blame us if you get caught πΆβπ«οΈ
-
Clone the repo:
git clone --depth=1 https://github.com/hazraChandrima/nirmas.git cd nirmas
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On Linux/macOS:
source venv/bin/activate
- On Windows:
-
Install the necessary dependencies:
pip install -r requirements.txt
It automates the process of capturing screenshots of a WhatsApp chat on an Android device. It uses the Android Debug Bridge (ADB) to communicate with the device and Python libraries for image processing and comparison.
- Automatically navigates to a specified WhatsApp chat.
- Captures screenshots of the chat and saves them locally.
- Detects repeated content to avoid redundant screenshots.
- Performs swipe gestures to scroll through the chat.
Ensure you have Python installed on your system. The script uses the following libraries:
- Pillow (for image processing)
- numpy (for efficient image difference calculation)
- colorama (for colored console output)
To install these dependencies, run:
pip install -r requirements.txt
- An Android device.
- WhatsApp installed in the Android device.
- USB Debugging enabled on the device (steps provided below).
- A USB cable to connect the device to your computer.
- Open the Settings app on your Android device.
- Scroll down and tap on About phone (or About device).
- Find the Build number (may be under Software information).
- Tap the Build number 7 times until you see a message: "You are now a developer!"
- Go back to the Settings app.
- Open System (or Additional settings on some devices).
- Tap on Developer options.
- Scroll down and find USB Debugging.
- Toggle USB Debugging to ON.
- Confirm the action when prompted.
This repository includes the necessary adb.exe
executable and related files for Windows systems.
- The script automatically uses the included ADB executable in the
adb-tools/
folder.
- The included ADB is for Windows only. For macOS or Linux, download the appropriate ADB tools from the official Android Developer website.
If you experience any issues with the included ADB, ensure the device is connected properly and that USB Debugging is enabled.
python adb_script.py
It automates the process of taking screenshots of an Instagram profile and its posts (images only) using Selenium WebDriver for Chrome.
- Logs into an Instagram account.
- Captures a screenshot of the user profile.
- Captures screenshots of all image posts by scrolling through the profile.
- Saves screenshots in a designated folder.
Ensure you have Python installed on your system. The script uses the following libraries:
- selenium (for browser automation)
- chromedriver-autoinstaller (for ensuring Chromedriver compatibility with installed Chrome version in your system)
- colorama (for colored console output)
- Pillow (for image processing)
To install these dependencies, run:
pip install -r requirements.txt
- Google Chrome installed on your system.
- Instagram account credentials (username and password).
python seln_script.py
Thanks to Ayush Jayaswal(our team leader for SIH), for the idea, and all the guidance!
I really got to learn so much...