---
name: python-web-scraper-builder
description: "Write a Python script to scrape data from a specific website structure. Use when the user wants help with Python Web Scraper Builder. Related topics: coding, python, data."
---

# Python Web Scraper Builder

Write a Python script to scrape data from a specific website structure.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Target URL or Website** (free text, e.g. "")
- **What data are you extracting?** (longer free text)
- **Library preference** (choose one: BeautifulSoup + Requests, Scrapy, Selenium, Playwright)
- **Output format** (choose one: Print to console, Save to CSV, Save to JSON, Insert into Database)
- **Handle pagination?** (choose one: Yes, No)
- **Advanced features** (choose any: Use proxies, Randomize User-Agent, Add delay between requests, Handle login)

## Prompt template

## Introduction
Generate the boilerplate code for a Python web scraper.

## Target Details
- Target URL or Website: {{Target URL or Website}}
- What data are you extracting?: {{What data are you extracting?}}
- Library preference: {{Library preference}}

## Scraper Options
- Output format: {{Output format}}
- Handle pagination? {{Handle pagination?}}
- Advanced features: {{Advanced features}}

---
**Goal**: Output the Python code with comments explaining how to run it safely.

---

Source: [Python Web Scraper Builder on PromptBuild](https://promptbuild.io/prompt/bnYb33QXLYmLN6Qxc8fw/python-web-scraper-builder)
