https://github.com/gautamxgambhir/Surfer
Surfer: AI-Powered Website & Webpage Summarizer, is a Chrome extension designed to make web browsing faster and smarter by summarizing both website overviews and webpage content. Whether you're doing in-depth research or just exploring a new site, Surfer delivers concise summaries tailored to your needs.
https://github.com/gautamxgambhir/Surfer
ai bart chrome css extension html javascript python summarizer together
Last synced: 2 months ago
JSON representation
Surfer: AI-Powered Website & Webpage Summarizer, is a Chrome extension designed to make web browsing faster and smarter by summarizing both website overviews and webpage content. Whether you're doing in-depth research or just exploring a new site, Surfer delivers concise summaries tailored to your needs.
- Host: GitHub
- URL: https://github.com/gautamxgambhir/Surfer
- Owner: gautamxgambhir
- Created: 2024-10-01T19:44:23.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-11-30T18:13:02.000Z (6 months ago)
- Last Synced: 2025-03-04T09:44:05.725Z (3 months ago)
- Topics: ai, bart, chrome, css, extension, html, javascript, python, summarizer, together
- Language: Python
- Homepage: https://codeday.sh/surfer
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
-----------------
# Surfer: AI-Powered Website & Webpage Summarizer




## What is it?
Surfer is an AI-powered Chrome extension designed to make web browsing faster and smarter by summarizing both website overviews and webpage content.
Whether you're doing in-depth research or just exploring a new site,
Surfer delivers concise summaries tailored to your needs.
With Surfer, you can :
- Get brief website summaries with just two lines of information.
- Generate detailed webpage content summaries from articles, blogs, and more.## Main Features
Here’s what makes **Surfer** essential :
- **Website Information Summarization** : Receive a 2-line overview of any website for a quick glance at its purpose and content.
- **Webpage Content Summarization** : Get comprehensive summaries of webpage content in a concise format.
- **Real-time API Integration** : Surfer uses Together API and state-of-the-art models like BART for real-time summarization.## New Features
- **Dark/Light Theme Toggle**: Surfer now includes a theme toggle button, allowing users to switch between light and dark modes for a comfortable browsing experience.
- **Improved UI**: The UI has been enhanced for better and a more intuitive user experience. All elements, including the radio buttons and submit button, are now more user-friendly and visually appealing.
- **Copy Summary**: Now, to make it easier for user to copy the generated summary, The user can simply click on the Summary to copy it to the clipoard.## Where to get it?
The extension is hosted on GitHub at : https://github.com/gautamxgambhir/surferr
## Installation and Setup
#### 1. Clone the repository :
```
git clone https://github.com/gautamxgambhir/Surferr.git
```#### 2. Backend setup (Make sure the ```app.py``` server is running) :
- Navigate to the project directory.
- Install the required Python dependencies :
```
pip install -r requirements.txt
```
- Make sure to enter your [Together AI](https://www.together.ai/) API key in ```api_key.txt```.- Start the Flask server :
```
python app.py
```
#### 2. Load the extension in Chrome :
- Go to **chrome://extensions/** in your browser.
- Enable **Developer Mode** in the top-right corner.
- Click **Load unpacked** and select the ```surfer``` directory.## Usage
Once installed, Surfer can summarize websites and webpage content directly from your Chrome browser :[Download Video Tutorial for Surfer Usage](https://drive.google.com/file/d/1YHjVjUMQOIx2S4loCVSnGJFuki_ft8k0/view?usp=sharing)
#### 1. Open the Surfer Extension :
- Click on the Surfer icon in your Chrome toolbar.
#### 2. Select a Radio Button :
- **Website Information** : Summarizes the website's core details.
- **Webpage Content Summary** : Summarizes the visible content of the webpage you're currently on.
#### 3. Submit Button :
- Click **Submit** to get the summary of the webpage or website information directly in the extension's popup.## Dependencies
- [**Flask** : Backend server for handling summarization requests.](https://flask.palletsprojects.com/en/3.0.x/)
- [**Together API** : Real-time AI API for generating summaries.](https://www.together.ai/)
- [**BART Model** : Summarization model for content extraction.](https://huggingface.co/docs/transformers/en/model_doc/bart)## Package
#### Links
- [PyPi](https://pypi.org/project/surferr/0.3/)
- [Source code](https://github.com/gautamxgambhir/surferr)#### Package Installation
pip install surferr### Upgrade
pip install surferr --upgrade#### Package Features
- Summarize any text
- Extract text from a webpage
- Summarize a webpage from a URl
- Get website information summary##### Setup of Package
```
from surferr import Surfer, version# Make sure to provide your API key of Together AI
API_KEY = "YOUR_API_KEY"# Create an instance of the Surfer class by providing the API key
surfer = Surfer(api_key=API_KEY)
```##### Check Version
```
# Display the current version of the package
print(version())
```##### Summarize a block of text
```
text = """
YOUR_TEXT
"""
# Call the summarize_text method to generate summary
text_summary = surfer.summarize_text(text)
print(text_summary)
```##### Extracting text content from a webpage
```
# Make sure to provide the URL
url = "https://en.wikipedia.org/wiki/Artificial_intelligence"# Call the extract_text_from_webpage method to fetch and extract text content from the webpage
webpage_text = surfer.extract_text_from_webpage(url)
print(webpage_text)
```##### Summarizing a webpage's content
```
# Call the summarize_webpage method to generate a summary of the webpage's content
webpage_summary = surfer.summarize_webpage(url)
print(webpage_summary)
```##### Getting Information about a website
```
# Use the website_info_summary method to get summary of the website
website_info = surfer.website_info_summary(url)
print(website_info)
```## Contact
- `Email` - [email protected]
- `Instagram` - https://www.instagram.com/gautamxgambhir/
- `Twitter` - https://www.twitter.com/gautamxgambhir/