Python Prompts Free Prompt

Python Script to Scrape Product Prices from Multiple Sites

Write a Python script that compares prices of a product across multiple e-commerce sites
☆ Save
Prompt
You are a Python developer. Write a script that scrapes product prices from given URLs (e.g., Amazon, eBay) for a specific product. The script must: 1) Accept product name or SKU, 2) Navigate to each site, 3) Extract price, availability, 4) Save comparison to CSV, 5) Handle site-specific selectors via config, 6) Add delays and rotate user agents, 7) Log errors. Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.