WebBriefs is an intelligent webpage summarizer API that extracts and condenses content into concise, readable markdown format. It is perfect for quickly getting the gist of any website.
- Extracts key information from any webpage.
- Provides summaries in markdown format for easy reading.
- Designed for researchers, students, and professionals who need quick insights.
WebBriefs uses advanced AI to analyze the content of a given webpage URL. It identifies the most relevant and useful information, then summarizes it into a clear and concise markdown format.
- Python 3.8+
- Required Python packages:
fastapi
,uvicorn
,python-dotenv
,crewai
,crewai_tools
,langchain_google_genai
-
Clone the repository:
git clone https://github.com/yourusername/WebBriefs.git cd WebBriefs
-
Install dependencies:
pip install fastapi uvicorn python-dotenv crewai crewai_tools langchain_google_genai
-
Set up environment variables: Create a
.env
file in the root directory and add your API keys:GEMINI_API_KEY=your_google_genai_api_key SERPER_API_KEY=your_serper_api_key OPENAI_API_KEY=your_openai_api_key
-
Start the FastAPI server:
uvicorn app:app --reload
-
Access the API: Open your browser and go to
http://127.0.0.1:8000/
to read the instructions. -
Summarize a webpage: To get a summary, visit:
http://127.0.0.1:8000/summarize/?url=https://example.com
Replace
https://example.com
with the URL of the webpage you want to summarize.
- Home Route (
/
): Provides instructions on how to use the API. - Summarize Route (
/summarize/
): Accepts a URL as a query parameter and returns the summarized content in markdown format.
If you want to summarize the content of https://example.com
, use the following URL:
http://127.0.0.1:8000/summarize/?url=https://example.com
You will receive a markdown-formatted summary of the webpage content.
To deploy WebBriefs on Hugging Face Spaces or any other cloud platform, follow their specific deployment instructions and ensure the environment variables are set accordingly.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or suggestions, please open an issue on GitHub or contact us at [[email protected]].
Thank you for using WebBriefs! Hope it helps you save time and enhance your productivity by providing quick insights from any webpage.