# Tool: Generate Prompt for Web Scraping using Python

> Build resilient data extraction crawlers with the BOPINK Python Web Scraping Prompt Engine. Built for Data Engineers and Automation Specialists, this tool constructs prompt specifications for writing ethical Python 3.12 scrapers using Playwright, BeautifulSoup4, and Scrapy with headless browser execution, proxy rotation, rate-limiting delays, and CSV/JSON exports.

**Category**: prompts-code-design | **Target AI Models**: Gemini 3.1 Pro, GPT-4o

## Domain Parameters:
- `scraperLib` (select): Python Extraction Engine (Default: "Playwright")
- `rateLimiting` (toggle): Polite Rate-Limiting Delays (Default: "true")
- `robotsTxtCheck` (toggle): Respect Robots.txt Directives (Default: "true")
- `exportFormat` (select): Scraped Data Export Target (Default: "CSV")

## Master Prompt Engineering Architecture (5 Pillars):
1. **Role & Persona**: Domain expert framing
2. **Task & Deliverable**: Primary objective & constraints
3. **Context & Parameters**: Technical specs & camera/stack parameters
4. **Negative Constraints**: Forbidden artifacts & bad practices
5. **Output Spec**: Section formatting & XML/Markdown structure

## Programmatic API Execution:
```http
POST /api/generate-prompt
Content-Type: application/json

{
  "toolSlug": "generate-prompt-for-web-scraping-using-python",
  "rawPrompt": "Your raw concept here",
  "thinkingLevel": "HIGH"
}
```
