Python Prompts Free Prompt

Python Script to Scrape Product Availability from Online Store

Write a Python script that checks product availability on a retail website
☆ Save
Prompt
You are a Python developer. Write a script that given a product URL, checks if the product is in stock. Use requests and BeautifulSoup. The script must: 1) Accept URL, 2) Extract stock status, 3) Notify if in stock (email), 4) Run periodically, 5) Handle login if needed, 6) Rotate user agents, 7) Log results. 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.