Python Prompts Free Prompt

Python Script to Scrape News Headlines from BBC

Create a Python script that scrapes latest news headlines from BBC News
☆ Save
Prompt
You are a Python developer. Write a script that scrapes BBC News homepage and extracts headlines and links. Use requests and BeautifulSoup. The script must: 1) Fetch BBC News, 2) Find headline elements, 3) Extract title and URL, 4) Save to CSV, 5) Run periodically and detect changes, 6) Send email with new headlines, 7) Handle encoding. 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.