English | 简体中文
A complete open-source project that crawls and displays dog images from Amazon's error pages.
- 🐕 Automatically fetches dog images from Amazon (starting from 1, incrementing)
- 📊 Smart stopping mechanism (max 1000 images or 100 consecutive 404s)
- 📱 3-second delay between requests to avoid rate limiting
- 📝 Auto-generates
index.jsonindex file - 📊 Detailed logging
- 🎨 Modern masonry layout
- 📱 Responsive design for all devices
- 🔄 Image lazy loading with loading animations
- 🎭 Elegant error handling and loading states
- 💫 Smooth hover animations
# Install Python dependencies
pip install -r requirements.txt
# Install Node.js dependencies
npm install
# Install frontend dependencies
cd frontend
npm install
cd ..python dog_crawler.pyThe crawler will:
- Start from
https://images-na.ssl-images-amazon.com/images/G/01/error/1._TTD_.jpg - Increment numbers to fetch images
- Save images to
data/dogs/directory - Generate
data/dogs/index.jsonindex file
cd frontend
npm run build
cd ..node server.jsAfter starting the server, visit http://localhost:3000 to view the dog gallery.
You can modify these parameters in dog_crawler.py:
max_number: Maximum number of images (default: 1000)max_consecutive_404: Maximum consecutive 404s (default: 100)output_dir: Image save directory (default: data/dogs)
- Masonry Layout: Auto-adjusts columns (4 desktop, 3 tablet, 2 mobile, 1 small screen)
- Image Info: Shows image number and file size
- Loading States: Beautiful loading animations
- Error Handling: 404 images auto-hidden
- Responsive: Perfectly adapts to all screen sizes
# Run crawler
npm run crawler
# Build frontend
npm run build
# Start dev server
npm run dev
# Full setup
npm run setup- Python 3.x: Core crawler
- requests: HTTP request library
- Node.js: Server environment
- Express: Web framework
- React 18: Frontend framework
- TypeScript: Type safety
- CSS3: Modern styling and animations
- Responsive Design: Adaptive layouts
- Request Rate: Crawler has 3-second delays, please don't make too frequent
- Storage: Images are large, ensure enough storage space
- Network: Stable connection required for downloading
- Browser: Modern browsers recommended (Chrome, Firefox, Safari, Edge)
MIT License - See LICENSE file
Issues and Pull Requests welcome!
🐕 Enjoy these cute dog images!