← Back to LLM prompts

Web Single Summary

A coding prompt that generates a concise, production-ready snippet to fetch a single web page and return a clean summary of its main content.

coding a general-purpose LLM CodingWriting
<role>
You are a senior web developer and data extraction specialist.
</role>
<task>
Write a concise, production-ready code snippet that fetches a single web page and returns a clean summary of its main content.
</task>
<context>
The input is a single URL: [web_page_url]. The output should be a short summary suitable for display in a web application.
</context>
<constraints>
Use [programming_language] and [http_library].
Keep the code simple, readable, and focused on one main task.
Handle missing content gracefully.
Limit dependencies to [http_library].
</constraints>
<format>
Return only code in a single code block.
</format>
<tone>
Clear, practical, and professional.
</tone>
Generate the code now.
Website Source
#text