Website Summarization using AI.
Website Summarization using AI.
Enter the website to be summaried on line 6.
Uses the GPT 3.5 Turbo model to keep costs low and does a pretty good job. You could use GPT4 instead by changing line 17, but overkill if you ask me.
You'll need to set an OPENAI_API_KEY environment variable with your OPENAI API key.
Output can be formatted to print on screen or as JSON API-type output by commenting out the appropriate lines at the bottom of the code.