Summarizing URLs with ChatGPT
save yourself some reading time
- tags
- chatgpt
Contents
Here’s a simple way to use ChatGPT’s API. I want to add a list of links
that I find interesting to the blog, and I was getting the description of the post
from the head
s, but I thought why not just download the whole text,
pipe it through ChatGPT and see what it says?
The Script
|
|
Note: You need to have an OpenAI API key, and this script pulls it from LastPass
The Results
Stanford Director: AI Sceintists’ “Frontal Cortex is massively underdeveloped”
Robert Reich, associate director of Stanford’s Institute for Human-Centered Artificial Intelligence, likened AI researchers to “late-stage teenagers” with “massively underdeveloped” frontal cortexes, which affects their sense of social responsibility when it comes to ethics in the industry. Reich’s analogy highlights the risk-taking and invincibility often associated with teenagers, which he sees reflected in the AI industry’s push to build technology regardless of potential consequences. While the industry is young, it is being led by adults who are making conscious choices that will impact society.
TikTok spied on me. Why?
A Financial Times journalist shares her experience of discovering she had been surveilled by TikTok as part of an attempt to find the sources of damaging stories about the social media app’s Chinese parent company, ByteDance. The journalist notes that TikTok’s rapid growth has made it a target for Beijing’s recent crackdown on Big Tech, and there is alarm about the security of user data, particularly in the US, TikTok’s biggest market. TikTok has said it has never given data to the Chinese government and wouldn’t do so if asked.
The seven programming ur-languages
The author identifies seven ur-languages in programming: ALGOL, Lisp, ML, Self, Forth, APL, and Prolog. These ur-languages have distinct collections of fundamentals that form the basis of programming languages today. The author recommends learning a language from each ur-language to develop neural pathways and explore new possibilities in programming. The recommended languages are PLT Racket (Lisp), Haskell (ML), Self (Self), Prolog, gForth (Forth), and K (APL).
A Regular script
Here’s another simple one that pulls out some metadata:
|
|
Compare the results
Stanford Director: AI Sceintists’ “Frontal Cortex is massively underdeveloped”
{
"doc_title": "Stanford Director: AI Scientists’ “Frontal Cortex Is Massively Underdeveloped”",
"author": "N/A",
"ogtitle": "Stanford Director: AI Scientists’ “Frontal Cortex Is Massively Underdeveloped”",
"ogdescription": "The associate director of Stanford's Institute for Human-Centered Artificial Intelligence compared AI scientists to \"late-stage\" teens."
}
TikTok spied on me. Why?
{
"doc_title": "TikTok spied on me. Why? | Ars Technica",
"author": "N/A",
"ogtitle": "TikTok spied on me. Why?",
"ogdescription": "A Financial Times journalist writes about discovering she’d been surveilled by TikTok."
}
The seven programming ur-languages
{
"doc_title": "madhadron - The seven programming ur-languages",
"author": "N/A",
"ogtitle": "N/A",
"ogdescription": "N/A"
}
Conclusion
It didn’t take any longer to write the ChatGPT based version, and while it gave different info it was a lot better.
Previously
Next