Skip to main content

AI-Powered Website & Webpage Summarizer

Project description

Surfer: AI-Powered Website & Webpage Summarizer

Python Status License Together-AI BART

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

Package

Links

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)

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 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

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

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surferr-0.7.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

surferr-0.7-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file surferr-0.7.tar.gz.

File metadata

  • Download URL: surferr-0.7.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for surferr-0.7.tar.gz
Algorithm Hash digest
SHA256 fe212970488abd062c3ee00acb2e0aa1a338670202b2d167c0f6e4204a928e9b
MD5 8e7877659afd9c025563d11a13a28a48
BLAKE2b-256 be45433c0952c69b5b1d049daea8a675dfa69a7469b761276e81080544c26b6d

See more details on using hashes here.

File details

Details for the file surferr-0.7-py3-none-any.whl.

File metadata

  • Download URL: surferr-0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for surferr-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bcef301b0b5922885d072db141684e012fbd553ec3fd37676e7173efb1056f3e
MD5 a59f257f76cc2bb8bccc7a397369aeec
BLAKE2b-256 8ffedd5ca21a0eda328a4d69b06b30306888d772e96ea98e89bcf7f163ea0b39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page