How nadeerasilvaa/insta-scrapper works
Main Components
• API Server: Represent the Express.js server (the index.js entry point) as the central component.
• Scraping/HTTP Client Module: Identify the module/component that makes HTTP requests via axios and then parses HTML using Cheerio.
• Rate Limiter: Mark the rate limiting middleware (express-rate-limit) that wraps the API endpoint to control incoming traffic.
• External Service: Represent Instagram as an external system from which the scraper fetches profile pages.
Relationships and Interactions
• Cheerio-based HTML parsing as part of the scraping workflow.
Architectural Patterns and Design Principles
• Middleware (the rate limiter) as an internal middleware layer within the Express application.
• Separation of concerns: Request validation and throttling, external data fetching, and data parsing/response generation.
Highlighting Technologies
• Instagram as an external system that serves as the source of data.