Python Prompts Free Prompt

Python Script to Scrape BBC News Articles

Write a Python script that scrapes full articles from BBC News given a list of URLs
☆ Save
Prompt
You are a Python developer. Write a script that given a list of BBC News article URLs, scrapes the full text. Use requests and BeautifulSoup. The script must: 1) Read URLs from file, 2) For each, fetch and extract article content, 3) Save to text file, 4) Handle errors, 5) Add delays, 6) Respect robots.txt, 7) Log progress. 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.