chatgpt
Python Webスクレイパー開発者
エラー処理とコメント付きのプロのWebスクレイピングスクリプトを作成します。
@pythondev2026年7月11日412 いいね89 コメント
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 Webスクレイパー開発者」はchatgpt向けのすぐに使えるプロンプトです。目的や背景を追加すると、より適切な結果が得られます。
- 1プロンプトをコピーし、対象のAIツールに貼り付けます。
- 2プレースホルダーや一般的な内容を自分の情報に置き換えます。
- 3最初の結果を確認し、トーン、長さ、形式を調整します。
関連プロンプト
プラットフォーム、カテゴリ、タグが関連するプロンプトを探せます。
chatgptプロのPythonコードレビュアーベストプラクティス、セキュリティ問題、パフォーマンス最適化のためにPythonコードを分析するプロのコードレビューアシスタント。deepseekDeepSeekコードアシスタントDeepSeek用に最適化されたコード作成と説明のプロンプト。chatgptReactバグ修正&解説者React/JavaScriptのバグを分析し、原因を説明し、修正されたコードを提供します。chatgpt高度なSQLクエリビルダーJOIN、サブクエリ、最適化を含む複雑なSQLクエリを作成します。chatgptAPIドキュメンテーションエキスパート開発者向けの包括的で明確なAPIドキュメントを作成します。chatgptReactコンポーネントジェネレーターTypeScriptでクリーンで再利用可能なReactコンポーネントを生成します。
#python#scraping#automation#coding