Python Prompts Free Prompt

Python Script to Scrape Medium Articles by Tag

Write a Python script that scrapes Medium articles for a given tag
☆ Save
Prompt
You are a Python developer. Write a script that scrapes Medium for articles with a specific tag. Use requests and BeautifulSoup. The script must: 1) Accept tag, 2) Extract title, author, claps, URL, 3) Handle pagination (infinite scroll might need Selenium), 4) Save to CSV, 5) Respect robots.txt, 6) Add delays, 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.