This Chrome extension allows users to enter a URL and receive a summary of the text content of the webpage associated with that URL. The summary is generated using the Diffbot API for content extraction and the Cohere API for text summarization.
Before using this Chrome extension, you'll need to perform the following steps:
-
Register for Diffbot API Key
- Sign up for a Diffbot account at Diffbot Developer Portal.
- Obtain your API key from the portal. This key will be used to authenticate requests to the Diffbot API.
-
Register for Cohere API Key
- Sign up for a Cohere account at Cohere Developer Portal.
- Obtain your API key from the portal. This key will be used to authenticate requests to the Cohere API.
-
Clone the project
-
Run the Python Script
- Navigate to the directory containing the
app.pyfile. - Run the Python script using the command
python app.py.
- Navigate to the directory containing the
-
Install the Extension
- Open Google Chrome and navigate to
chrome://extensions/. - Enable the "Developer mode" toggle in the top right corner.
- Click on "Load unpacked" and select the "chrome_extension" folder.
- Open Google Chrome and navigate to
-
Enter URL
- Click on the extension icon in the Chrome toolbar.
- Enter the URL of the webpage you want to summarize into the input field.
- Click the "Summarize" button.
-
View Summary
- After a brief moment, the summary of the webpage content will be displayed in the extension popup.
If you encounter any issues while using the extension, please ensure that:
- The Flask server (
app.py) is running and accessible. - You have obtained valid API keys for Diffbot and Cohere.
- The API keys are correctly configured in the Chrome extension code (
background.js).
If you continue to experience problems, feel free to open an issue on the GitHub repository.
This project is licensed under the MIT License.