Skill Zuno · skillzunos.com · Python Data Science
Scrapy interview questions
Prepare for Scrapy interviews on Skill Zuno. This practice book covers Scrapy interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Scrapy on Skill ZunoAlso see the Scrapy tutorial.
Scrapy is a fast, asynchronous Python framework for building web crawlers and scrapers at scale. Spiders define how to follow links and extract data, while the engine handles scheduling, concurrency, retries and exporting results, and pipelines clean and store items. Interviews cover spiders, selectors, items and pipelines, middlewares, settings for polite crawling, handling JavaScript pages and deploying crawlers.
Sample Scrapy interview questions
When should you use Scrapy instead of Requests and Beautiful Soup?
When crawling many pages: Scrapy handles concurrency, retries, deduplication, throttling and exporting for you. Requests with Beautiful Soup is simpler for a few pages.
What is an item pipeline?
A chain of components that process each scraped item after the spider yields it, for example validating fields, removing duplicates and saving to a database.
How do you make Scrapy crawl politely?
Keep ROBOTSTXT_OBEY enabled, set DOWNLOAD_DELAY and limit concurrent requests per domain, enable AutoThrottle, and set an honest user agent.
What is the Scrapy shell for?
Interactively fetching a page and testing CSS and XPath selectors against the response, before writing them into a spider.
How does Scrapy avoid crawling the same URL twice?
The scheduler uses a duplicate filter that fingerprints each request and drops repeats, unless a request is created with dont_filter=True.
What you can practice
- Scrapy interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Python Data Science topics alongside Scrapy on skillzunos.com