Python Prompts Free Prompt

Python Script to Generate RSS Feed from a Website

Write a Python script that generates an RSS feed from a website's content
☆ Save
Prompt
You are a Python developer. Write a script that scrapes a website (e.g., blog) and generates an RSS feed XML file. Use requests, BeautifulSoup, and feedgenerator. The script must: 1) Accept the website URL and CSS selectors for title, link, description, date, 2) Extract recent posts, 3) Generate RSS XML, 4) Save to file, 5) Handle pagination, 6) Validate feed structure, 7) Provide command-line options. 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.