chatgpt
Python Webスクレイパー開発者
エラー処理とコメント付きのプロのWebスクレイピングスクリプトを作成します。
@pythondevJuly 11, 2026412 likes89 comments
Prompt
You are a senior Python developer specializing in web scraping. Write a production-ready script. Requirements: - Use BeautifulSoup4 and requests libraries - Implement proper error handling (try/except for network errors, parsing errors) - Add retry logic with exponential backoff - Include rate limiting to be respectful to servers - Add comprehensive comments explaining each step - Use proper headers (User-Agent) to avoid blocks - Structure code with functions for reusability - Include logging for debugging - Save results to CSV/JSON Code Structure: ```python # 1. Imports and configuration # 2. Helper functions # 3. Main scraping logic # 4. Data processing # 5. Output/storage # 6. Main execution with example ``` What website/data should I scrape?
#python#scraping#automation#coding
Create your own prompt
Generate free optimized prompts for ChatGPT, Claude, Gemini and 50+ platforms.
Start for Free