A Chrome extension that automatically identifies and downloads images in Studio Ghibli art style from X.com .
Ghibli Image Scraper uses Google's Gemini AI to analyze images on X.com in real-time and identify those that match the distinctive Studio Ghibli art style. When a matching image is found, it's automatically downloaded to your specified folder.
- Real-time image detection on X.com
- AI-powered Studio Ghibli style recognition
- Customizable confidence threshold for detection accuracy
- Statistics tracking for processed and downloaded images
- Configurable download path
-
Clone this repository or download the source code:
git clone https://github.com/saarthakkj/ghibli-image-scraper.git
-
Open Chrome and navigate to
chrome://extensions/
-
Enable "Developer mode" by toggling the switch in the top right corner
-
Click "Load unpacked" and select the directory containing the extension files
-
The extension should now be installed and visible in your Chrome toolbar
Before using the extension, you need to configure it with your Gemini API key:
- Click on the extension icon in your Chrome toolbar
- Go to the "Settings" tab
- Enter your Gemini API key
- (Optional) Adjust other settings:
- API Base URL: The base URL for the Gemini API
- Download Path: Where images will be saved (relative to your Downloads folder)
- Confidence Threshold: Minimum confidence level for image classification (0.0-1.0)
- Click "Save Settings"
- Navigate to X.com (or Twitter.com)
- The extension will automatically start scanning images as you browse
- Images identified as Studio Ghibli style will be downloaded to your specified folder
- You can view statistics about processed and downloaded images in the extension popup
- The extension uses a MutationObserver to detect images as they appear on X.com
- Each image is sent to the Gemini API for analysis
- The API determines if the image matches Studio Ghibli art style
- If the confidence level exceeds your threshold, the image is downloaded
- Built with JavaScript using Chrome Extension Manifest V3
- Uses Google's Gemini API for image analysis
- Implements efficient image processing to avoid duplicates
- Respects user privacy by only processing image data
- Google Chrome browser
- Gemini API key (obtain from Google AI Studio)
- Active internet connection
Contributions are welcome! Please feel free to submit a Pull Request.
This extension is not affiliated with Studio Ghibli or X.com. It is intended for personal use only. Please respect copyright and terms of service when using downloaded images.