Skip to main content

SuperSummarizeAI

Description

SuperSummarizeAI is a versatile Python tool designed to extract and summarize textual content. Whether it's from a provided webpage URL, a YouTube video link, or a PDF file, this tool processes the content through ChatGPT to generate an insightful summary. Once the summary is ready, the tool copies the content directly to your clipboard for quick access and sharing. Additionally, with its multilingual capabilities, SuperSummarizeAI can cater to a global audience, generating summaries in various languages.

Installation

Using pip (Recommended for all platforms)

  1. Install SuperSummarizeAI using pip:
pip install ssai
  1. Set your OpenAI key using the following command, replacing YOUR_OPENAI_KEY with your actual OpenAI key (You can get one here):
ssai --OPENAI_KEY=YOUR_OPENAI_KEY

Using Homebrew (macOS)

  1. Tap into the SuperSummarizeAI repository:
brew tap alexandrevl/supersummarizeai
  1. Install SuperSummarizeAI:
brew install ssai
  1. Set your OpenAI key using the following command, replacing YOUR_OPENAI_KEY with your actual OpenAI key (You can get one here):
ssai --OPENAI_KEY=YOUR_OPENAI_KEY

Manual Installation

  1. Ensure you have Python 3 installed on your system.
  2. Clone the repository to your local machine:
git clone https://github.com/alexandrevl/SuperSummarizeAI.git
  1. Navigate to the cloned directory:
cd SuperSummarizeAI
  1. Install the required packages using pip:
pip install -r requirements.txt
  1. Set your OpenAI key using the following command, replacing YOUR_OPENAI_KEY with your actual OpenAI key (You can get one here):
python ssay.py --OPENAI_KEY=YOUR_OPENAI_KEY

For security reasons, always ensure that your .env file remains confidential. Do not share or expose it as it contains sensitive API credentials.

Usage

If Installed via pip or Homebrew:

Simply provide the desired URL (webpage or YouTube video) or PDF file as a command-line argument:

ssai <TARGET>

For instance:

ssai https://example.com

or

ssai MY_PDF.pdf

For multilingual summaries, specify your desired language using the --lang option (default is 'brazilian portuguese'):

ssai <TARGET> --lang <desired_language>

For instance:

ssai https://example.com --lang english

For adding context to the AI, use the --context option:

ssai <TARGET> --context <context>

For instance:

ssai https://youtube.com/watch?v=example --context "The name of the presenter is John Doe"

For more information on the available options, run:

ssai --help

If Installed Manually:

To employ SuperSummarizeAI, provide the desired URL (webpage or YouTube video) or PDF file as a command-line argument:

python ssay.py <TARGET>

For instance:

python ssay.py https://example.com

or

python ssay.py MY_PDF.pdf

For multilingual summaries, specify your desired language using the --lang option (default is 'brazilian portuguese'):

python ssay.py <TARGET> --lang <desired_language>

For instance:

python ssay.py https://example.com --lang english

For give a context to the AI, use the --context option:

python ssay.py <TARGET> --context <context>

For instance:

python ssay.py https://youtube.com/watch?v=example --context "The name of presenter is John Doe"

For more information on the available options, run:

python ssay.py --help

📸 Examples

See SuperSummarizeAI in action:

Webpage Summarization:

Example of webpage summarization

YouTube Video Summarization:

Example of YouTube video summarization

Troubleshooting

  • TARGET Input: Make sure the URL you input is correctly formatted and always begins with http:// or https://. For PDF files, ensure the file is in the same directory as the script or provide the full path to the file.
  • Dependencies: Double-check to ensure all required dependencies are correctly installed. If you encounter any errors, try reinstalling the dependencies using pip install -r requirements.txt.
  • OpenAI Key: Make sure your .env file contains the correct and valid OpenAI key.

Contributing

Interested in contributing to SuperSummarizeAI? We'd love to collaborate! Please initiate by opening an issue to discuss the changes you'd like to make.

License

Licensed under MIT.

Metadata

Release files for ssai 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ssai 1.0.10
File Interpreter ABI Platform
ssai-1.0.10-py3-none-any.whl Python 3 none any Details

Release files / ssai-1.0.10-py3-none-any.whl

Download URL ssai-1.0.10-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5ae10a8abe4c7befabeb9267a77271a2dc73a62a0700a78be71682bab7b4ca5
BLAKE2b-256 checksum
How to use checksums
eaf652a634ec0c0e959eb46a7d76f38ead6e7419e89cee50641c96d748421a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.0.10 This release

1 release file

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page