-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
887a5f0
commit 9622b46
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Web Page Summarizer | ||
A Python-based tool that takes a list of URLs, fetches their content, and generates concise summaries using the OpenAI API. This script is designed to handle multiple URLs at once, providing an efficient way to summarize content from various web pages. | ||
|
||
Features | ||
Content Extraction: Fetches and processes text from each provided URL. | ||
Summarization: Uses GPT-3.5 to generate summaries of web page content. | ||
Rotating User Agents: Bypasses common 403 errors by simulating different browsers. | ||
Installation | ||
Clone the repository. | ||
Install dependencies: | ||
pip install -r requirements.txt | ||
Replace YOUR_OPENAI_API_KEY in the script with your OpenAI API key. | ||
Usage | ||
Run the script: | ||
python url_summarizer.py | ||
Paste URLs, one per line, and press Enter twice to generate summaries. | ||
Dependencies | ||
requests | ||
beautifulsoup4 | ||
openai |